# HG changeset patch # User Gerd Moellmann # Date 997368747 0 # Node ID ad2af6022ebbbffbdf806398789f62d5cfdb818e # Parent 445bd2ae602afe445c0c8b76482f73d009f86194 (add-minor-mode): Use mode-line-minor-mode-keymap for the minor mode name. diff -r 445bd2ae602a -r ad2af6022ebb lisp/subr.el --- 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)