1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

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
This commit is contained in:
Caio Henrique 2020-09-10 22:57:48 +02:00 committed by Lars Ingebrigtsen
parent a70ce631c6
commit bd5b775452

View file

@ -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)