From bd5b7754523a825d7b8d2bb55d420c0e3347fa2a Mon Sep 17 00:00:00 2001 From: Caio Henrique Date: Thu, 10 Sep 2020 22:57:48 +0200 Subject: [PATCH] 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 bc094c9050d..30d86c7f17a 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) -- 2.39.5