summaryrefslogtreecommitdiff
path: root/lisp/menu-bar.el
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1993-09-19 02:05:38 +0000
committerRoland McGrath <roland@gnu.org>1993-09-19 02:05:38 +0000
commit660fa562cc1a8912f311877efa856e2abd0ff95e (patch)
tree8973bab2ef130550b23160a25179d1d1910736a6 /lisp/menu-bar.el
parent02ec15923b51880aa4a4e8ac685d29cb16393725 (diff)
downloademacs-660fa562cc1a8912f311877efa856e2abd0ff95e.tar.gz
(revert-buffer): Enable menu item when the buffer is modified.
Diffstat (limited to 'lisp/menu-bar.el')
-rw-r--r--lisp/menu-bar.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index e26c1d56b79..f4e4260adec 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -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))