mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-05 19:31:02 -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:
parent
a70ce631c6
commit
bd5b775452
1 changed files with 6 additions and 0 deletions
|
|
@ -536,6 +536,12 @@
|
||||||
(if (featurep 'ns)
|
(if (featurep 'ns)
|
||||||
(bindings--define-key menu [separator-undo] menu-bar-separator))
|
(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]
|
(bindings--define-key menu [undo]
|
||||||
'(menu-item "Undo" undo
|
'(menu-item "Undo" undo
|
||||||
:enable (and (not buffer-read-only)
|
:enable (and (not buffer-read-only)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue