summaryrefslogtreecommitdiff
path: root/lisp/textmodes/tex-mode.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2005-08-20 11:41:23 +0000
committerEli Zaretskii <eliz@gnu.org>2005-08-20 11:41:23 +0000
commit966e49906b3e33d0b9eeb61c687bb4410989f94c (patch)
treed81891e00779648613f331c8e256b09b4217983d /lisp/textmodes/tex-mode.el
parent40b388f98ce27057cff72ff65fc3ee91a2e7344d (diff)
downloademacs-966e49906b3e33d0b9eeb61c687bb4410989f94c.tar.gz
(tex-bibtex-file, tex-send-tex-command):
Run the argument of tex-shell-cd-command through convert-standard-filename, to get the correct style of slashes on Windows, and enclose the result in quotes, in case the file name includes whitespace or other special characters.
Diffstat (limited to 'lisp/textmodes/tex-mode.el')
-rw-r--r--lisp/textmodes/tex-mode.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index b5d82f55a0b..b4ec3fe86cf 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -1942,7 +1942,8 @@ FILE is typically the output DVI or PDF file."
default-directory))))
(not dir))
(let (shell-dirtrack-verbose)
- (tex-send-command tex-shell-cd-command dir)))
+ (tex-send-command tex-shell-cd-command
+ (concat "\"" (convert-standard-filename dir) "\""))))
(with-current-buffer (process-buffer (tex-send-command cmd))
(setq compilation-last-buffer (current-buffer))
(compilation-forget-errors)
@@ -2307,7 +2308,8 @@ Runs the shell command defined by `tex-show-queue-command'."
(tex-out-file
(tex-append (file-name-nondirectory (buffer-file-name)) ""))
(file-dir (file-name-directory (buffer-file-name))))
- (tex-send-command tex-shell-cd-command file-dir)
+ (tex-send-command tex-shell-cd-command
+ (concat "\"" (convert-standard-filename file-dir) "\""))
(tex-send-command tex-bibtex-command tex-out-file))
(tex-display-shell))