diff options
| author | Gerd Moellmann | 2001-08-09 14:52:27 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-08-09 14:52:27 +0000 |
| commit | 0c107014e042fa9fbb7d8cd1169a091bcc5717d3 (patch) | |
| tree | 77c910ae09d595ce39da22f26012dd4903cb23d5 | |
| parent | 39fce518ec9a637b335a73b82fb7b6b05262667b (diff) | |
| download | emacs-0c107014e042fa9fbb7d8cd1169a091bcc5717d3.tar.gz emacs-0c107014e042fa9fbb7d8cd1169a091bcc5717d3.zip | |
(add-minor-mode): Use mode-line-minor-mode-keymap for
the minor mode name.
| -rw-r--r-- | lisp/subr.el | 8 |
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) |