Mercurial > emacs
changeset 4742:cafb372921c3
(revert-buffer): Enable menu item when the buffer is modified.
author | Roland McGrath <roland@gnu.org> |
---|---|
date | Sun, 19 Sep 1993 02:05:38 +0000 |
parents | c0ea0009268a |
children | f05c414fe229 |
files | lisp/menu-bar.el |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/menu-bar.el Sun Sep 19 01:54:48 1993 +0000 +++ b/lisp/menu-bar.el Sun Sep 19 02:05:38 1993 +0000 @@ -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))