(easy-menu-add): Do call x-popup-menu, but only if it's defined.
This commit is contained in:
parent
dc0485c4f8
commit
67d170f2d2
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue