[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 20:42:26 +0300 |
> Date: Fri, 19 Aug 2005 11:31:56 +0300
> From: Eli Zaretskii <eliz@gnu.org>
>
> > 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:
Oops! sorry, bad patch. Try this one instead:
--- lisp/textmodes/tex-mode.el.~0 2005-08-12 12:49:17.000000000 +0300
+++ lisp/textmodes/tex-mode.el 2005-08-19 20:39:39.796875000 +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
+ (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))