# HG changeset patch # User Stefan Monnier # Date 1081528896 0 # Node ID 1c98354c2113e2758e2dbd464067229f3f2705f4 # Parent b87089cc7e4c7840b70a440199dd00b1b69bd49d (easy-menu-add): Make it work in non-X Emacs. diff -r b87089cc7e4c -r 1c98354c2113 lisp/emacs-lisp/easymenu.el --- a/lisp/emacs-lisp/easymenu.el Fri Apr 09 16:15:08 2004 +0000 +++ b/lisp/emacs-lisp/easymenu.el Fri Apr 09 16:41:36 2004 +0000 @@ -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 @@ (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.