aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath1993-09-19 02:05:38 +0000
committerRoland McGrath1993-09-19 02:05:38 +0000
commit660fa562cc1a8912f311877efa856e2abd0ff95e (patch)
tree8973bab2ef130550b23160a25179d1d1910736a6
parent02ec15923b51880aa4a4e8ac685d29cb16393725 (diff)
downloademacs-660fa562cc1a8912f311877efa856e2abd0ff95e.tar.gz
emacs-660fa562cc1a8912f311877efa856e2abd0ff95e.zip
(revert-buffer): Enable menu item when the buffer is modified.
-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 @@
109(put 'revert-buffer 'menu-enable 109(put 'revert-buffer 'menu-enable
110 '(or revert-buffer-function revert-buffer-insert-file-contents-function 110 '(or revert-buffer-function revert-buffer-insert-file-contents-function
111 (and (buffer-file-name) 111 (and (buffer-file-name)
112 (not (verify-visited-file-modtime (current-buffer)))))) 112 (or (buffer-modified-p)
113 (not (verify-visited-file-modtime (current-buffer)))))))
113;; Permit deleting frame if it would leave a visible or iconified frame. 114;; Permit deleting frame if it would leave a visible or iconified frame.
114(put 'delete-frame 'menu-enable 115(put 'delete-frame 'menu-enable
115 '(let ((frames (frame-list)) 116 '(let ((frames (frame-list))