2001-12-26 Richard M. Stallman <rms@gnu.org>
+ * textmodes/flyspell.el (flyspell-mode-map): New keymap,
+ defined as before 2001-11-09.
+ (add-minor-mode call): Specify the keymap.
+
* progmodes/compile.el (compile-internal):
Set TERM variable in process-environment.
(define-key map "\M-\t" #'flyspell-auto-correct-word)))
map))
+;;;###autoload
+(defvar flyspell-mode-map (make-sparse-keymap))
+
+;; mouse, keyboard bindings and misc definition
+(when (or (assoc 'flyspell-mode minor-mode-map-alist)
+ (setq minor-mode-map-alist
+ (cons (cons 'flyspell-mode flyspell-mode-map)
+ minor-mode-map-alist)))
+ (define-key flyspell-mode-map "\M-\t" 'flyspell-auto-correct-word))
+
;; the name of the overlay property that defines the keymap
(defvar flyspell-overlay-keymap-property-name 'keymap)
;;;###autoload
(add-minor-mode 'flyspell-mode
'flyspell-mode-line-string
- nil
+ flyspell-mode-map
nil
'flyspell-mode)