from a menu, don't try to invoke the menu.
+2001-11-03 Richard M. Stallman <rms@gnu.org>
+
+ * mouse.el (popup-menu): If the user refuses to select
+ from a menu, don't try to invoke the menu.
+
2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
* frame.el (set-background-color, set-foreground-color): Call
(message "")
;; Maybe try again but with the submap.
(setq map (if (keymapp cmd) cmd)))
- (when (functionp cmd)
+ ;; If the user did not cancel by refusing to select,
+ ;; and if the result is a command, run it.
+ (when (and (null map) (commandp cmd))
(setq prefix-arg prefix)
;; `setup-specified-language-environment', for instance,
;; expects this to be set from a menu keymap.