emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 225/287: Added disabling to redo based on undo-tree-mode


From: Matthew Fidler
Subject: [elpa] 225/287: Added disabling to redo based on undo-tree-mode
Date: Wed, 02 Jul 2014 14:46:12 +0000

mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.

commit ab1665b878a7a834ef77934297ae9657148c2533
Author: Matthew L. Fidler <address@hidden>
Date:   Thu Jun 26 09:15:53 2014 -0500

    Added disabling to redo based on undo-tree-mode
---
 ergoemacs-menus.el |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/ergoemacs-menus.el b/ergoemacs-menus.el
index 9bd2755..220f4f8 100644
--- a/ergoemacs-menus.el
+++ b/ergoemacs-menus.el
@@ -260,6 +260,13 @@ All other modes are assumed to be minor modes or 
unimportant.
           :help "Undo last operation"
           :keys "Ctrl+Z")
     (redo menu-item "Redo" ergoemacs-redo
+          :enable (and
+                   (not buffer-read-only)
+                   (not (eq t buffer-undo-list))
+                   (or
+                    (not (and (boundp 'undo-tree-mode) undo-tree-mode))
+                    (and (and (boundp 'undo-tree-mode) undo-tree-mode)
+                            (null (undo-tree-node-next (undo-tree-current 
buffer-undo-tree))))))
           :keys "Ctrl+Y")
     (redo-sep menu-item "--")
     (cut menu-item "Cut" clipboard-kill-region



reply via email to

[Prev in Thread] Current Thread [Next in Thread]