changeset 11765:3bc36769004f

(popup-dialog-box): x-popup-dialog returns the value, not the cons cell.
author Richard M. Stallman <rms@gnu.org>
date Tue, 09 May 1995 02:19:20 +0000
parents 296f3ad76600
children 1877e9736ea1
files lisp/emacs-lisp/lmenu.el
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/lmenu.el	Tue May 09 02:07:55 1995 +0000
+++ b/lisp/emacs-lisp/lmenu.el	Tue May 09 02:19:20 1995 +0000
@@ -246,11 +246,10 @@
 		      converted))))
       (setq tail (cdr tail)))
     (setq choice (x-popup-dialog t (cons name (nreverse converted))))
-    (setq meaning (assq choice converted))
-    (if meaning
-	(if (symbolp (cdr meaning))
-	    (call-interactively (cdr meaning))
-	  (eval (cdr meaning))))))
+    (if choice
+	(if (symbolp choice)
+	    (call-interactively choice)
+	  (eval choice)))))
 
 ;; This is empty because the usual elements of the menu bar
 ;; are provided by menu-bar.el instead.