mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
(revert-buffer): Enable menu item when the buffer is modified.
This commit is contained in:
parent
02ec15923b
commit
660fa562cc
1 changed files with 2 additions and 1 deletions
|
|
@ -109,7 +109,8 @@
|
|||
(put 'revert-buffer 'menu-enable
|
||||
'(or revert-buffer-function revert-buffer-insert-file-contents-function
|
||||
(and (buffer-file-name)
|
||||
(not (verify-visited-file-modtime (current-buffer))))))
|
||||
(or (buffer-modified-p)
|
||||
(not (verify-visited-file-modtime (current-buffer)))))))
|
||||
;; Permit deleting frame if it would leave a visible or iconified frame.
|
||||
(put 'delete-frame 'menu-enable
|
||||
'(let ((frames (frame-list))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue