From: Richard M. Stallman Date: Thu, 31 Dec 1998 14:40:03 +0000 (+0000) Subject: (sgml-validate): Ask whether to save only X-Git-Tag: emacs-20.4~979 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b7cd1746e23b9e9fce0f937d5b14a524c569c3f2;p=emacs.git (sgml-validate): Ask whether to save only if buffer is modified; ask about all modified buffers. --- diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index c40c8c439b0..5e7e7d95f9b 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el @@ -776,9 +776,7 @@ and move to the line in the SGML document that caused it." (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"))