help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cd command on PC version (Emacs 20.7.1)


From: Eli Zaretskii
Subject: Re: cd command on PC version (Emacs 20.7.1)
Date: Fri, 19 Aug 2005 11:31:56 +0300

> From: address@hidden (Edward M. Reingold)
> Date: 18 Aug 2005 14:55:03 -0500
> 
> When I use C-c C-f in a LaTeX file, the *tex-shell* buffer is generated and a
> change directory command is given; on my PC it looks like
> 
>   c:\ed\bin>cd c:/ed/
>   cd c:/ed/
>   The system cannot find the path specified.
> 
> The problem being that the slashes should be backslashes.

It's a bug.  Please try the following patch:


--- lisp/textmodes/tex-mode.el.~0       2005-08-12 12:49:17.000000000 +0300
+++ lisp/textmodes/tex-mode.el  2005-08-19 11:30:38.021873500 +0300
@@ -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
+                       (convert-standard-filename (concat "\"" 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
+                     (convert-standard-filename (concat "\"" file-dir "\"")))
     (tex-send-command tex-bibtex-command tex-out-file))
   (tex-display-shell))
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]