Commit b7cd1746 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(sgml-validate): Ask whether to save only

if buffer is modified; ask about all modified buffers.
parent 7d6d84c1
......@@ -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"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment