Mercurial > emacs
changeset 65048:3aa5e0f32cd6
(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.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 20 Aug 2005 11:40:36 +0000 |
parents | 2c54445118cc |
children | 381ae1260d3f |
files | lisp/textmodes/tex-mode.el |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/textmodes/tex-mode.el Sat Aug 20 05:26:27 2005 +0000 +++ b/lisp/textmodes/tex-mode.el Sat Aug 20 11:40:36 2005 +0000 @@ -1942,7 +1942,8 @@ 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 @@ (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))