diff lisp/menu-bar.el @ 67430:2c1c0c628ff3

(menu-bar-edit-menu): Add listp around pending-undo-list to disable menu item "undo" when pending undo list is empty.
author Juri Linkov <juri@jurta.org>
date Fri, 09 Dec 2005 09:59:55 +0000
parents c9d9dfe47d58
children 7c0bd57ed595
line wrap: on
line diff
--- a/lisp/menu-bar.el	Fri Dec 09 09:56:39 2005 +0000
+++ b/lisp/menu-bar.el	Fri Dec 09 09:59:55 2005 +0000
@@ -481,7 +481,7 @@
 	      :enable (and (not buffer-read-only)
 			   (not (eq t buffer-undo-list))
 			   (if (eq last-command 'undo)
-			       pending-undo-list
+			       (listp pending-undo-list)
 			     (consp buffer-undo-list)))
 	      :help "Undo last operation"))