Mercurial > emacs
changeset 30425:ad577e2e48d3
(popup-menu): Set last-command-event.
(mouse-major-mode-menu-prefix): Declare.
author | Dave Love <fx@gnu.org> |
---|---|
date | Mon, 24 Jul 2000 17:58:32 +0000 |
parents | a69ca2b45f4e |
children | 8674e7d48c7a |
files | lisp/mouse.el |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/mouse.el Mon Jul 24 15:30:58 2000 +0000 +++ b/lisp/mouse.el Mon Jul 24 17:58:32 2000 +0000 @@ -88,9 +88,14 @@ ;; Try again but with the submap. (setq map cmd) (setq prefix-arg prefix) + ;; `setup-specified-language-environment', for instance, + ;; expects this to be set from a menu keymap. + (setq last-command-event (car (last event))) ;; mouse-major-mode-menu was using `command-execute' instead. (call-interactively cmd))))))) - + +(defvar mouse-major-mode-menu-prefix) ; dynamically bound + (defun mouse-major-mode-menu (event prefix) "Pop up a mode-specific menu of mouse commands. Default to the Edit menu if the major mode doesn't define a menu."