HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02ec159
)
(revert-buffer): Enable menu item when the buffer is modified.
author
Roland McGrath
<roland@gnu.org>
Sun, 19 Sep 1993 02:05:38 +0000
(
02:05
+0000)
committer
Roland McGrath
<roland@gnu.org>
Sun, 19 Sep 1993 02:05:38 +0000
(
02:05
+0000)
lisp/menu-bar.el
patch
|
blob
|
blame
|
history
diff --git
a/lisp/menu-bar.el
b/lisp/menu-bar.el
index
e26c1d5
..
f4e4260
100644
(file)
--- 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))