From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: cd command on PC version (Emacs 20.7.1) Date: Fri, 19 Aug 2005 20:42:26 +0300 Message-ID: References: <85mznfrpew.fsf@emr.cs.iit.edu> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1124475123 1259 80.91.229.2 (19 Aug 2005 18:12:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Aug 2005 18:12:03 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 19 20:12:01 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E6BJe-0007Bt-Vo for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Aug 2005 20:10:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E6BNF-0005nZ-2F for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Aug 2005 14:13:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E6BDu-0000OP-R3 for help-gnu-emacs@gnu.org; Fri, 19 Aug 2005 14:04:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E6B9e-0006nH-Iq for help-gnu-emacs@gnu.org; Fri, 19 Aug 2005 13:59:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E6B9b-0006Ze-Oo for help-gnu-emacs@gnu.org; Fri, 19 Aug 2005 13:59:43 -0400 Original-Received: from [192.114.186.20] (helo=nitzan.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E6B97-0005Ep-Ar for help-gnu-emacs@gnu.org; Fri, 19 Aug 2005 13:59:13 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-209-134.inter.net.il [80.230.209.134]) by nitzan.inter.net.il (MOS 3.6.5-GR) with ESMTP id BFA23963 (AUTH halo1); Fri, 19 Aug 2005 20:42:25 +0300 (IDT) Original-To: help-gnu-emacs@gnu.org In-reply-to: (message from Eli Zaretskii on Fri, 19 Aug 2005 11:31:56 +0300) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:28867 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28867 > Date: Fri, 19 Aug 2005 11:31:56 +0300 > From: Eli Zaretskii > > > 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))