comparison lisp/textmodes/sgml-mode.el @ 65133:265f46863d5b

(sgml-validate): Use `compilation-start' instead of the obsolete `compile-internal'.
author Romain Francoise <romain@orebokech.com>
date Fri, 26 Aug 2005 10:02:03 +0000
parents fb2cad4cfb30
children 0ef9e8908562
comparison
equal deleted inserted replaced
65132:459cbb37cbe7 65133:265f46863d5b
899 (eq (preceding-char) ?>))) 899 (eq (preceding-char) ?>)))
900 (backward-list) 900 (backward-list)
901 (forward-list))))))) 901 (forward-list)))))))
902 902
903 903
904 (autoload 'compile-internal "compile") 904 (autoload 'compilation-start "compile")
905 905
906 (defun sgml-validate (command) 906 (defun sgml-validate (command)
907 "Validate an SGML document. 907 "Validate an SGML document.
908 Runs COMMAND, a shell command, in a separate process asynchronously 908 Runs COMMAND, a shell command, in a separate process asynchronously
909 with output going to the buffer `*compilation*'. 909 with output going to the buffer `*compilation*'.
917 (let ((name (buffer-file-name))) 917 (let ((name (buffer-file-name)))
918 (and name 918 (and name
919 (file-name-nondirectory name)))))))) 919 (file-name-nondirectory name))))))))
920 (setq sgml-saved-validate-command command) 920 (setq sgml-saved-validate-command command)
921 (save-some-buffers (not compilation-ask-about-save) nil) 921 (save-some-buffers (not compilation-ask-about-save) nil)
922 (compile-internal command "No more errors")) 922 (compilation-start command))
923 923
924 (defsubst sgml-at-indentation-p () 924 (defsubst sgml-at-indentation-p ()
925 "Return true if point is at the first non-whitespace character on the line." 925 "Return true if point is at the first non-whitespace character on the line."
926 (save-excursion 926 (save-excursion
927 (skip-chars-backward " \t") 927 (skip-chars-backward " \t")