aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/subr.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index f2f71a3fe3b..eb09e39fb59 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -1547,11 +1547,9 @@ If TOGGLE has a `:menu-tag', that is used for the menu item's label."
1547 (let ((existing (assq toggle minor-mode-alist))) 1547 (let ((existing (assq toggle minor-mode-alist)))
1548 (when (and (stringp name) (not (get-text-property 0 'local-map name))) 1548 (when (and (stringp name) (not (get-text-property 0 'local-map name)))
1549 (setq name 1549 (setq name
1550 (apply 'propertize name 1550 (propertize name
1551 'local-map (make-mode-line-mouse2-map toggle-fun) 1551 'local-map mode-line-minor-mode-keymap
1552 (unless (get-text-property 0 'help-echo name) 1552 'help-echo "mouse-3: minor mode menu")))
1553 (list 'help-echo
1554 (format "mouse-2: turn off %S" toggle))))))
1555 (if existing 1553 (if existing
1556 (setcdr existing (list name)) 1554 (setcdr existing (list name))
1557 (let ((tail minor-mode-alist) found) 1555 (let ((tail minor-mode-alist) found)