changeset 23970:d1d08f461c9c

(sgml-validate): Ask whether to save only if buffer is modified; ask about all modified buffers.
author Richard M. Stallman <rms@gnu.org>
date Thu, 31 Dec 1998 14:40:03 +0000
parents 3e4e87cddb85
children 35ba3fe1ad69
files lisp/textmodes/sgml-mode.el
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/sgml-mode.el	Thu Dec 31 13:44:02 1998 +0000
+++ b/lisp/textmodes/sgml-mode.el	Thu Dec 31 14:40:03 1998 +0000
@@ -776,9 +776,7 @@
 				    (and name
 					 (file-name-nondirectory name))))))))
   (setq sgml-saved-validate-command command)
-  (if (or (not compilation-ask-about-save)
-	  (y-or-n-p (message "Save buffer %s? " (buffer-name))))
-      (save-buffer))
+  (save-some-buffers (not compilation-ask-about-save) nil)
   (compile-internal command "No more errors"))