From: Stefan Monnier Date: Fri, 9 Apr 2004 16:41:36 +0000 (+0000) Subject: (easy-menu-add): Make it work in non-X Emacs. X-Git-Tag: ttn-vms-21-2-B4~6924 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b1b2ae81628a5edce8492e5e1004de8f2a15830d;p=emacs.git (easy-menu-add): Make it work in non-X Emacs. --- diff --git a/lisp/emacs-lisp/easymenu.el b/lisp/emacs-lisp/easymenu.el index 5a2a33575e7..88f7657b6bf 100644 --- a/lisp/emacs-lisp/easymenu.el +++ b/lisp/emacs-lisp/easymenu.el @@ -1,6 +1,6 @@ ;;; easymenu.el --- support the easymenu interface for defining a menu -;; Copyright (C) 1994, 1996, 1998, 1999, 2000 Free Software Foundation, Inc. +;; Copyright (C) 1994,96,98,1999,2000,2004 Free Software Foundation, Inc. ;; Keywords: emulations ;; Author: Richard Stallman @@ -478,7 +478,9 @@ 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))) - (if (keymapp menu) (x-popup-menu nil menu)))) + ;; x-popup-menu does not exist on tty-only Emacs. + ;; (if (keymapp menu) (x-popup-menu nil menu)) + )) (defun add-submenu (menu-path submenu &optional before in-menu) "Add submenu SUBMENU in the menu at MENU-PATH.