summaryrefslogtreecommitdiff
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorKarl Berry <karl@gnu.org>2005-03-31 00:24:57 +0000
committerKarl Berry <karl@gnu.org>2005-03-31 00:24:57 +0000
commitace4dad6d2edc4cb8b99637aeeda0cd3e0cb7e08 (patch)
treea3da1514fa6206b3be28911709310eef4e48b3cd /lisp/textmodes
parent5ee2cf8a5a6e0166b6ec123764db2733caff60b8 (diff)
downloademacs-ace4dad6d2edc4cb8b99637aeeda0cd3e0cb7e08.tar.gz
shell-quote-argument, not comint-quote-filename
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/tex-mode.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 285f25dec88..cc9ed23c6be 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -1887,8 +1887,8 @@ FILE is typically the output DVI or PDF file."
(prog1 (file-name-directory (expand-file-name file))
(setq file (file-name-nondirectory file))))
(root (file-name-sans-extension file))
- (fspec (list (cons ?r (comint-quote-filename root))
- (cons ?f (comint-quote-filename file))))
+ (fspec (list (cons ?r (shell-quote-argument root))
+ (cons ?f (shell-quote-argument file))))
(default (tex-compile-default fspec)))
(list default-directory
(completing-read
@@ -1909,14 +1909,14 @@ FILE is typically the output DVI or PDF file."
(compile-command
(if star
(concat (substring command 0 star)
- (comint-quote-filename file)
+ (shell-quote-argument file)
(substring command (1+ star)))
(concat command " "
tex-start-options
(if (< 0 (length tex-start-commands))
(concat
(shell-quote-argument tex-start-commands) " "))
- (comint-quote-filename file)))))
+ (shell-quote-argument file)))))
(tex-send-tex-command compile-command dir)))
(defun tex-send-tex-command (cmd &optional dir)