aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1996-07-08 00:17:35 +0000
committerKarl Heuer1996-07-08 00:17:35 +0000
commit639829447fd3d9c991eb137ecb2d0700318de1b3 (patch)
treefe52b341d29fe75bccbaa0c562cb5e10973965bb
parent9d02faa7aa45eb82b0c0ad35f8cfeb0491ea29cd (diff)
downloademacs-639829447fd3d9c991eb137ecb2d0700318de1b3.tar.gz
emacs-639829447fd3d9c991eb137ecb2d0700318de1b3.zip
(mouse-major-mode-menu-1): Always return just a keymap;
never (STRING . KEYMAP). (mouse-major-mode-menu): Discard the `keymap' from the front of the keymap we get from mouse-major-mode-menu-1. Construct the menu name string from major-mode.
-rw-r--r--lisp/mouse.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 1f99e41840d..ac8a1f2b466 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -51,10 +51,10 @@
51 (unread-command-events (list event))) 51 (unread-command-events (list event)))
52 ;; Make a keymap in which our last command leads to a menu 52 ;; Make a keymap in which our last command leads to a menu
53 (define-key newmap (vector (car event)) 53 (define-key newmap (vector (car event))
54 (nconc (make-sparse-keymap "Menu") 54 (nconc (make-sparse-keymap (concat mode-name " Mode"))
55 (mouse-major-mode-menu-1 55 (cdr (mouse-major-mode-menu-1
56 (and (current-local-map) 56 (and (current-local-map)
57 (lookup-key (current-local-map) [menu-bar]))))) 57 (lookup-key (current-local-map) [menu-bar]))))))
58 (mouse-major-mode-menu-compute-equiv-keys newmap) 58 (mouse-major-mode-menu-compute-equiv-keys newmap)
59 ;; Make NEWMAP override the usual definition 59 ;; Make NEWMAP override the usual definition
60 ;; of the mouse button that got us here. 60 ;; of the mouse button that got us here.
@@ -100,7 +100,7 @@
100 (setq submap (cdr (car tail))))) 100 (setq submap (cdr (car tail)))))
101 (setq tail (cdr tail))) 101 (setq tail (cdr tail)))
102 (if (eq submap t) menubar 102 (if (eq submap t) menubar
103 submap)))) 103 (cdr submap)))))
104 104
105;; Commands that operate on windows. 105;; Commands that operate on windows.
106 106