Commit 67d170f2 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

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

parent dc0485c4
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment