mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(sgml-validate): Ask whether to save only
if buffer is modified; ask about all modified buffers.
This commit is contained in:
parent
7d6d84c1db
commit
b7cd1746e2
1 changed files with 1 additions and 3 deletions
|
|
@ -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"))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue