(easy-menu-add): Do call x-popup-menu, but only if it's defined.

This commit is contained in:
Richard M. Stallman 2004-04-21 19:14:49 +00:00
parent dc0485c4f8
commit 67d170f2d2

View file

@ -478,8 +478,8 @@ Do it only if `easy-menu-precalculate-equivalent-keybindings' is on."
(when easy-menu-precalculate-equivalent-keybindings
(if (and (symbolp menu) (not (keymapp menu)) (boundp menu))
(setq menu (symbol-value menu)))
;; x-popup-menu does not exist on tty-only Emacs.
;; (if (keymapp menu) (x-popup-menu nil menu))
(and (keymapp menu) (fboundp 'x-popup-menu)
(x-popup-menu nil menu))
))
(defun add-submenu (menu-path submenu &optional before in-menu)