1
Fork 0
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:
Roland McGrath 1993-09-19 02:05:38 +00:00
parent 02ec15923b
commit 660fa562cc

View file

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