aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2005-12-09 10:02:19 +0000
committerJuri Linkov2005-12-09 10:02:19 +0000
commit37fec9becb0344ec3a317317862949b9b94b40fe (patch)
treeec373fdbfb84032a3c02c8ee9a33d40e4308c885
parente242b6c447c58d1aeaa58bb621c36407fee08fea (diff)
downloademacs-37fec9becb0344ec3a317317862949b9b94b40fe.tar.gz
emacs-37fec9becb0344ec3a317317862949b9b94b40fe.zip
(menu-bar-edit-menu): Add listp around pending-undo-list to disable
menu item "undo" when pending undo list is empty.
-rw-r--r--lisp/ChangeLog22
-rw-r--r--lisp/menu-bar.el2
2 files changed, 23 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 662d958a75d..eba974e2e49 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,25 @@
12005-12-09 Juri Linkov <juri@jurta.org>
2
3 * isearch.el (isearch-highlight): Change main overlay priority
4 from 1 to 1001. Simplify.
5 (isearch-lazy-highlight-update): Change lazy overlay priority
6 from 0 to 1000.
7
8 * replace.el (replace-highlight): Change overlay priority from
9 1 to 1001.
10
11 * textmodes/ispell.el (ispell-highlight-spelling-error-overlay):
12 Change overlay priority from 1 to 1001. Reuse existing overlay.
13
14 * compare-w.el (compare-windows-highlight): Change overlay
15 priority from 1 to 1000.
16
17 * menu-bar.el (menu-bar-edit-menu): Add listp around
18 pending-undo-list to disable menu item "undo" when pending
19 undo list is empty.
20
21 * locate.el (locate): Disable undo in *Locate* buffer.
22
12005-12-09 Kim F. Storm <storm@cua.dk> 232005-12-09 Kim F. Storm <storm@cua.dk>
2 24
3 * mail/smtpmail.el (smtpmail-via-smtp): Disable undo in SMTP buffer. 25 * mail/smtpmail.el (smtpmail-via-smtp): Disable undo in SMTP buffer.
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."
481 :enable (and (not buffer-read-only) 481 :enable (and (not buffer-read-only)
482 (not (eq t buffer-undo-list)) 482 (not (eq t buffer-undo-list))
483 (if (eq last-command 'undo) 483 (if (eq last-command 'undo)
484 pending-undo-list 484 (listp pending-undo-list)
485 (consp buffer-undo-list))) 485 (consp buffer-undo-list)))
486 :help "Undo last operation")) 486 :help "Undo last operation"))
487 487