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

current buffer has no file name.
This commit is contained in:
Gerd Moellmann 2000-09-15 20:28:56 +00:00
parent a7bc704bbd
commit 7a98d82123
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
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

View file

@ -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"))