changeset 31645:0d9e6ed2718b

(menu-bar-files-menu): Disable ``Save'' if current buffer has no file name.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 15 Sep 2000 20:27:06 +0000
parents 0113112028c5
children 9875a90f65f4
files lisp/menu-bar.el
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/menu-bar.el	Fri Sep 15 18:00:07 2000 +0000
+++ b/lisp/menu-bar.el	Fri Sep 15 20:27:06 2000 +0000
@@ -152,6 +152,7 @@
 (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"))