From b7cd1746e23b9e9fce0f937d5b14a524c569c3f2 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 31 Dec 1998 14:40:03 +0000 Subject: [PATCH] (sgml-validate): Ask whether to save only if buffer is modified; ask about all modified buffers. --- lisp/textmodes/sgml-mode.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index c40c8c439b..5e7e7d95f9 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")) -- 2.20.1