Mercurial > emacs
changeset 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 | 3ff7903b19d7 |
children | 48ad66c2b375 |
files | lisp/menu-bar.el |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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"))