aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/menu-bar.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 3ca7d1b5b3d..4a569783293 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -2375,6 +2375,10 @@ FROM-MENU-BAR, if non-nil, means we are dropping one of menu-bar's menus."
2375 ;; `setup-specified-language-environment', for instance, 2375 ;; `setup-specified-language-environment', for instance,
2376 ;; expects this to be set from a menu keymap. 2376 ;; expects this to be set from a menu keymap.
2377 (setq last-command-event (car (last event))) 2377 (setq last-command-event (car (last event)))
2378 ;; Update `this-command' and run `pre-command-hook' so that
2379 ;; things like `delete-selection-pre-hook' will work correctly.
2380 (setq this-command cmd)
2381 (run-hooks 'pre-command-hook)
2378 ;; mouse-major-mode-menu was using `command-execute' instead. 2382 ;; mouse-major-mode-menu was using `command-execute' instead.
2379 (call-interactively cmd)))) 2383 (call-interactively cmd))))
2380 2384