menu-bar-separator))
(bindings--define-key menu [enable-undelete-frame-mode]
- '(menu-item "Enable Frame Undeletion" undelete-frame-mode
+ '(menu-item "Enable Undeleting Frames" undelete-frame-mode
:visible (null undelete-frame-mode)
- :help "Enable frame undeletion for this session"))
+ :help "Enable undeleting frames in this session"))
(bindings--define-key menu [undelete-last-deleted-frame]
'(menu-item "Undelete Frame" undelete-frame
- :visible undelete-frame-mode
+ :visible (and undelete-frame-mode
+ (car undelete-frame--deleted-frames))
:help "Undelete the most recently deleted frame"))
;; Don't use delete-frame as event name because that is a special