]> git.eshelyaron.com Git - emacs.git/commitdiff
(tex-bibtex-file, tex-send-tex-command):
authorEli Zaretskii <eliz@gnu.org>
Sat, 20 Aug 2005 11:41:23 +0000 (11:41 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 20 Aug 2005 11:41:23 +0000 (11:41 +0000)
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.

lisp/ChangeLog
lisp/textmodes/tex-mode.el

index 7d68058a8d7756c8599ada4aaf76cf4910e80c42..5fb44137e9902c0198049eaad2b17e997fd3d614 100644 (file)
@@ -1,3 +1,11 @@
+2005-08-20  Eli Zaretskii  <eliz@gnu.org>
+
+       * textmodes/tex-mode.el (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.
+
 2005-08-19  Andreas Schwab  <schwab@suse.de>
 
        * progmodes/gud.el (gud-kill-buffer-hook): Don't kill unrelated
index b5d82f55a0b72a1f5530d253598d3dff9f3f3834..b4ec3fe86cf86e07328c3cfb5db7df54ab0c8b93 100644 (file)
@@ -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))
 \f