diff options
| author | Dave Love | 2000-07-24 17:58:32 +0000 |
|---|---|---|
| committer | Dave Love | 2000-07-24 17:58:32 +0000 |
| commit | bcd010a058be28d339a26e91d3ef349723952681 (patch) | |
| tree | 5e5a0a558d6d224feb7fe9282bf5effd64b9b843 | |
| parent | fbe0a9585f580a805d4544811141c9b5f3eb72bb (diff) | |
| download | emacs-bcd010a058be28d339a26e91d3ef349723952681.tar.gz emacs-bcd010a058be28d339a26e91d3ef349723952681.zip | |
(popup-menu): Set last-command-event.
(mouse-major-mode-menu-prefix): Declare.
| -rw-r--r-- | lisp/mouse.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el index ef78aff5a7c..019ea21e52e 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -88,9 +88,14 @@ PREFIX is the prefix argument (if any) to pass to the command." | |||
| 88 | ;; Try again but with the submap. | 88 | ;; Try again but with the submap. |
| 89 | (setq map cmd) | 89 | (setq map cmd) |
| 90 | (setq prefix-arg prefix) | 90 | (setq prefix-arg prefix) |
| 91 | ;; `setup-specified-language-environment', for instance, | ||
| 92 | ;; expects this to be set from a menu keymap. | ||
| 93 | (setq last-command-event (car (last event))) | ||
| 91 | ;; mouse-major-mode-menu was using `command-execute' instead. | 94 | ;; mouse-major-mode-menu was using `command-execute' instead. |
| 92 | (call-interactively cmd))))))) | 95 | (call-interactively cmd))))))) |
| 93 | 96 | ||
| 97 | (defvar mouse-major-mode-menu-prefix) ; dynamically bound | ||
| 98 | |||
| 94 | (defun mouse-major-mode-menu (event prefix) | 99 | (defun mouse-major-mode-menu (event prefix) |
| 95 | "Pop up a mode-specific menu of mouse commands. | 100 | "Pop up a mode-specific menu of mouse commands. |
| 96 | Default to the Edit menu if the major mode doesn't define a menu." | 101 | Default to the Edit menu if the major mode doesn't define a menu." |