# HG changeset patch # User Gerd Moellmann # Date 997368680 0 # Node ID 75666bd5d498a5d7b94797d956ee18e82f4f8152 # Parent aa185d4220dda54ee68ab9953b37f45e5f1c21a5 (minor-mode-alist): Use mode-line-minor-mode-keymap for the minor mode name. diff -r aa185d4220dd -r 75666bd5d498 lisp/bindings.el --- a/lisp/bindings.el Thu Aug 09 14:21:12 2001 +0000 +++ b/lisp/bindings.el Thu Aug 09 14:51:20 2001 +0000 @@ -232,34 +232,6 @@ `(-3 . ,(propertize "%p" 'help-echo help-echo)) (propertize "-%-" 'help-echo help-echo)))) -(defvar minor-mode-alist nil "\ -Alist saying how to show minor modes in the mode line. -Each element looks like (VARIABLE STRING); -STRING is included in the mode line iff VARIABLE's value is non-nil. - -Actually, STRING need not be a string; any possible mode-line element -is okay. See `mode-line-format'.") -;; Don't use purecopy here--some people want to change these strings. -(setq minor-mode-alist - (list - (list 'abbrev-mode - (propertize " Abbrev" - 'help-echo (purecopy - "mouse-2: turn off Abbrev mode") - 'local-map (purecopy (make-mode-line-mouse-map - 'mouse-2 - #'mode-line-abbrev-mode)))) - '(overwrite-mode overwrite-mode) - (list 'auto-fill-function - (propertize " Fill" - 'help-echo (purecopy - "mouse-2: turn off Autofill mode") - 'local-map (purecopy (make-mode-line-mouse-map - 'mouse-2 - #'mode-line-auto-fill-mode)))) - ;; not really a minor mode... - '(defining-kbd-macro " Def"))) - (defvar mode-line-buffer-identification-keymap nil "\ Keymap for what is displayed by `mode-line-buffer-identification'.") @@ -387,6 +359,28 @@ (define-key map [header-line down-mouse-3] 'mode-line-mode-menu-1) (setq mode-line-minor-mode-keymap map)) +(defvar minor-mode-alist nil "\ +Alist saying how to show minor modes in the mode line. +Each element looks like (VARIABLE STRING); +STRING is included in the mode line iff VARIABLE's value is non-nil. + +Actually, STRING need not be a string; any possible mode-line element +is okay. See `mode-line-format'.") +;; Don't use purecopy here--some people want to change these strings. +(setq minor-mode-alist + (list + (list 'abbrev-mode + (propertize " Abbrev" + 'help-echo (purecopy "mouse-3: minor mode menu") + 'local-map mode-line-minor-mode-keymap)) + '(overwrite-mode overwrite-mode) + (list 'auto-fill-function + (propertize " Fill" + 'help-echo (purecopy "mouse-3: minor mode menu") + 'local-map mode-line-minor-mode-keymap)) + ;; not really a minor mode... + '(defining-kbd-macro " Def"))) + ;; These variables are used by autoloadable packages. ;; They are defined here so that they do not get overridden ;; by the loading of those packages.