From 602503c5e29aa32f67faf88695db29af9cc6457b Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 22 Dec 2002 22:03:22 +0000 Subject: [PATCH] (tex-print): Call shell-quote-argument on the file name. --- lisp/textmodes/tex-mode.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index e5635777985..b1fd6568c31 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -1878,7 +1878,9 @@ is provided, use the alternative command, `tex-alt-dvi-print-command'." (tex-start-shell)) (tex-send-command (if alt tex-alt-dvi-print-command tex-dvi-print-command) - print-file-name-dvi t)))) + (shell-quote-argument + print-file-name-dvi) + t)))) (defun tex-alt-print () "Print the .dvi file made by \\[tex-region], \\[tex-buffer] or \\[tex-file]. -- 2.39.2