Commit 7a98d821 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(menu-bar-files-menu): Disable ``Save'' if

current buffer has no file name.
parent a7bc704b
2000-09-15 Gerd Moellmann <gerd@gnu.org>
* menu-bar.el (menu-bar-files-menu): Disable ``Save'' if
current buffer has no file name.
2000-09-15 Dave Love <fx@gnu.org>
* strokes.el: Sync with maintainer's current version with changes
......
......@@ -152,6 +152,7 @@ A large number or nil slows down menu responsiveness."
(define-key menu-bar-files-menu [save-buffer]
'(menu-item "Save (current buffer)" save-buffer
:enable (and (buffer-modified-p)
(buffer-file-name)
(not (window-minibuffer-p
(frame-selected-window menu-updating-frame))))
:help "Save current buffer to its file"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment