aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mouse.el
diff options
context:
space:
mode:
authorStefan Monnier2010-12-13 10:27:36 -0500
committerStefan Monnier2010-12-13 10:27:36 -0500
commitf49d1f52b2e368ef67dcfececd426de958548f4e (patch)
treece24ced92f2acc976daf4b69e3634c8bd600e44e /lisp/mouse.el
parent07176b2a9e63a0d3933b167f987475d8a18da5cc (diff)
parent11aad4e9f9f54ce8e9ecc66347e512b20a3cdf39 (diff)
downloademacs-f49d1f52b2e368ef67dcfececd426de958548f4e.tar.gz
emacs-f49d1f52b2e368ef67dcfececd426de958548f4e.zip
Merge from emacs-23
Diffstat (limited to 'lisp/mouse.el')
-rw-r--r--lisp/mouse.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 40e0c14c064..aa5dadf84ff 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -185,6 +185,7 @@ items `Turn Off' and `Help'."
185 (minor-mode-menu-from-indicator indicator))) 185 (minor-mode-menu-from-indicator indicator)))
186 186
187(defun mouse-menu-major-mode-map () 187(defun mouse-menu-major-mode-map ()
188 (run-hooks 'activate-menubar-hook 'menu-bar-update-hook)
188 (let* (;; Keymap from which to inherit; may be null. 189 (let* (;; Keymap from which to inherit; may be null.
189 (ancestor (mouse-menu-non-singleton 190 (ancestor (mouse-menu-non-singleton
190 (and (current-local-map) 191 (and (current-local-map)
@@ -217,6 +218,7 @@ Otherwise return the whole menu."
217 "Return a keymap equivalent to the menu bar. 218 "Return a keymap equivalent to the menu bar.
218The contents are the items that would be in the menu bar whether or 219The contents are the items that would be in the menu bar whether or
219not it is actually displayed." 220not it is actually displayed."
221 (run-hooks 'activate-menubar-hook 'menu-bar-update-hook)
220 (let* ((local-menu (and (current-local-map) 222 (let* ((local-menu (and (current-local-map)
221 (lookup-key (current-local-map) [menu-bar]))) 223 (lookup-key (current-local-map) [menu-bar])))
222 (global-menu (lookup-key global-map [menu-bar])) 224 (global-menu (lookup-key global-map [menu-bar]))
@@ -2130,5 +2132,4 @@ choose a font."
2130 2132
2131(provide 'mouse) 2133(provide 'mouse)
2132 2134
2133;; arch-tag: 9a710ce1-914a-4923-9b81-697f7bf82ab3
2134;;; mouse.el ends here 2135;;; mouse.el ends here