From: Caio Henrique Date: Thu, 10 Sep 2020 20:57:48 +0000 (+0200) Subject: Add a "Redo" entry to the menu X-Git-Tag: emacs-28.0.90~6140 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bd5b7754523a825d7b8d2bb55d420c0e3347fa2a;p=emacs.git 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 --- 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)