[Top][All Lists]

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

master bd5b775 1/2: Add a "Redo" entry to the menu

From: Lars Ingebrigtsen
Subject: master bd5b775 1/2: Add a "Redo" entry to the menu
Date: Thu, 10 Sep 2020 17:04:01 -0400 (EDT)

branch: master
commit bd5b7754523a825d7b8d2bb55d420c0e3347fa2a
Author: Caio Henrique <caiohcs0@gmail.com>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Add a "Redo" entry to the menu
    * lisp/menu-bar.el (menu-bar-edit-menu): Add "Redo" under "Undo"
    in the Edit menu (bug#43315).
    Copyright-paperwork-exempt: yes
 lisp/menu-bar.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index bc094c9..30d86c7 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -536,6 +536,12 @@
     (if (featurep 'ns)
         (bindings--define-key menu [separator-undo] menu-bar-separator))
+    (bindings--define-key menu [undo-redo]
+      '(menu-item "Redo" undo-redo
+                  :enable (and (not buffer-read-only)
+                           (undo--last-change-was-undo-p buffer-undo-list))
+                  :help "Undo last undo"))
     (bindings--define-key menu [undo]
       '(menu-item "Undo" undo
                   :enable (and (not buffer-read-only)

reply via email to

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