]> git.eshelyaron.com Git - emacs.git/commitdiff
(sgml-validate): Quote the file name with shell-quote-argument.
authorEli Zaretskii <eliz@gnu.org>
Fri, 23 Feb 2007 19:27:46 +0000 (19:27 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 23 Feb 2007 19:27:46 +0000 (19:27 +0000)
lisp/textmodes/sgml-mode.el

index 6757eb9be1cff0d8d525112b7f96d3a0ba46d618..5e599ea10e6363719bd2fc4f586e0011eefa2795 100644 (file)
@@ -920,9 +920,10 @@ and move to the line in the SGML document that caused it."
                      (or sgml-saved-validate-command
                          (concat sgml-validate-command
                                  " "
-                                 (let ((name (buffer-file-name)))
-                                   (and name
-                                        (file-name-nondirectory name))))))))
+                                 (shell-quote-argument
+                                  (let ((name (buffer-file-name)))
+                                    (and name
+                                         (file-name-nondirectory name)))))))))
   (setq sgml-saved-validate-command command)
   (save-some-buffers (not compilation-ask-about-save) nil)
   (compilation-start command))