1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-26 10:49:33 +00:00

(sgml-validate): Ask whether to save only

if buffer is modified; ask about all modified buffers.
This commit is contained in:
Richard M. Stallman 1998-12-31 14:40:03 +00:00
parent 7d6d84c1db
commit b7cd1746e2

View File

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