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. Is there a simpel
fix to this--the directory name is given by file-name-directory which should
be smart enough to get it right for the PC!
Do I have to write my own PC version, or has this been done?
--
Professor Edward M. Reingold Email: rein...@iit.edu
Chairman, Department of Computer Science Voice: (312) 567-3309
Illinois Institute of Technology Assistant: (312) 567-5152
Stuart Building Fax: (312) 567-5067
10 West 31st Street, Suite 236
Chicago, IL 60616-3729 U.S.A.
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))
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))