summaryrefslogtreecommitdiff
path: root/lisp/menu-bar.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@jurta.org>2005-12-09 10:02:19 +0000
committerJuri Linkov <juri@jurta.org>2005-12-09 10:02:19 +0000
commit37fec9becb0344ec3a317317862949b9b94b40fe (patch)
treeec373fdbfb84032a3c02c8ee9a33d40e4308c885 /lisp/menu-bar.el
parente242b6c447c58d1aeaa58bb621c36407fee08fea (diff)
downloademacs-37fec9becb0344ec3a317317862949b9b94b40fe.tar.gz
(menu-bar-edit-menu): Add listp around pending-undo-list to disable
menu item "undo" when pending undo list is empty.
Diffstat (limited to 'lisp/menu-bar.el')
-rw-r--r--lisp/menu-bar.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 64dad08988c..56745d82cc4 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -481,7 +481,7 @@ A large number or nil slows down menu responsiveness."
: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"))