comparison lisp/textmodes/sgml-mode.el @ 23970:d1d08f461c9c

(sgml-validate): Ask whether to save only if buffer is modified; ask about all modified buffers.
author Richard M. Stallman <rms@gnu.org>
date Thu, 31 Dec 1998 14:40:03 +0000
parents 8d2bb5d1416a
children e2c5b1571392
comparison
equal deleted inserted replaced
23969:3e4e87cddb85 23970:d1d08f461c9c
774 " " 774 " "
775 (let ((name (buffer-file-name))) 775 (let ((name (buffer-file-name)))
776 (and name 776 (and name
777 (file-name-nondirectory name)))))))) 777 (file-name-nondirectory name))))))))
778 (setq sgml-saved-validate-command command) 778 (setq sgml-saved-validate-command command)
779 (if (or (not compilation-ask-about-save) 779 (save-some-buffers (not compilation-ask-about-save) nil)
780 (y-or-n-p (message "Save buffer %s? " (buffer-name))))
781 (save-buffer))
782 (compile-internal command "No more errors")) 780 (compile-internal command "No more errors"))
783 781
784 782
785 (defun sgml-beginning-of-tag (&optional top-level) 783 (defun sgml-beginning-of-tag (&optional top-level)
786 "Skip to beginning of tag and return its name. 784 "Skip to beginning of tag and return its name.