aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2007-02-23 19:27:46 +0000
committerEli Zaretskii2007-02-23 19:27:46 +0000
commitda8092ef54cc9172b56e3aa533a2f4414b792db6 (patch)
tree13611702e6d86d39ea9ed48f4a6aedf9363fc1ca
parentd695bd172e89b29d811d42b227f30e4db29abf54 (diff)
downloademacs-da8092ef54cc9172b56e3aa533a2f4414b792db6.tar.gz
emacs-da8092ef54cc9172b56e3aa533a2f4414b792db6.zip
(sgml-validate): Quote the file name with shell-quote-argument.
-rw-r--r--lisp/textmodes/sgml-mode.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index 6757eb9be1c..5e599ea10e6 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -920,9 +920,10 @@ and move to the line in the SGML document that caused it."
920 (or sgml-saved-validate-command 920 (or sgml-saved-validate-command
921 (concat sgml-validate-command 921 (concat sgml-validate-command
922 " " 922 " "
923 (let ((name (buffer-file-name))) 923 (shell-quote-argument
924 (and name 924 (let ((name (buffer-file-name)))
925 (file-name-nondirectory name)))))))) 925 (and name
926 (file-name-nondirectory name)))))))))
926 (setq sgml-saved-validate-command command) 927 (setq sgml-saved-validate-command command)
927 (save-some-buffers (not compilation-ask-about-save) nil) 928 (save-some-buffers (not compilation-ask-about-save) nil)
928 (compilation-start command)) 929 (compilation-start command))