Mercurial > emacs
changeset 38760:ad2af6022ebb
(add-minor-mode): Use mode-line-minor-mode-keymap for
the minor mode name.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 09 Aug 2001 14:52:27 +0000 |
parents | 445bd2ae602a |
children | 7047bd7df7fb |
files | lisp/subr.el |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/subr.el Thu Aug 09 14:52:02 2001 +0000 +++ b/lisp/subr.el Thu Aug 09 14:52:27 2001 +0000 @@ -1547,11 +1547,9 @@ (let ((existing (assq toggle minor-mode-alist))) (when (and (stringp name) (not (get-text-property 0 'local-map name))) (setq name - (apply 'propertize name - 'local-map (make-mode-line-mouse2-map toggle-fun) - (unless (get-text-property 0 'help-echo name) - (list 'help-echo - (format "mouse-2: turn off %S" toggle)))))) + (propertize name + 'local-map mode-line-minor-mode-keymap + 'help-echo "mouse-3: minor mode menu"))) (if existing (setcdr existing (list name)) (let ((tail minor-mode-alist) found)