changeset 21953:6655c426d447

(mouse-major-mode-menu): Run activate-menubar-hook here.
author Richard M. Stallman <rms@gnu.org>
date Tue, 05 May 1998 21:47:53 +0000
parents e71c5e32d385
children 73f9f4219198
files lisp/mouse.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mouse.el	Tue May 05 21:37:23 1998 +0000
+++ b/lisp/mouse.el	Tue May 05 21:47:53 1998 +0000
@@ -49,6 +49,8 @@
   ;; Switch to the window clicked on, because otherwise
   ;; the mode's commands may not make sense.
   (interactive "@e\nP")
+  ;; Let the mode update its menus first.
+  (run-hooks 'activate-menubar-hook)
   (let (;; This is where mouse-major-mode-menu-prefix
 	;; returns the prefix we should use (after menu-bar).
 	;; It is either nil or (SOME-SYMBOL).