From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: anhnmncb Newsgroups: gmane.emacs.devel Subject: Re: Expand dir name with \ when on windows. Date: Thu, 1 Jan 2009 03:36:58 +0000 (UTC) Message-ID: References: <87bpv01s0l.fsf@sina.com> <495C1B10.7050305@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1230781046 26753 80.91.229.12 (1 Jan 2009 03:37:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Jan 2009 03:37:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 01 04:38:37 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LIEOK-0000UJ-Ho for ged-emacs-devel@m.gmane.org; Thu, 01 Jan 2009 04:38:36 +0100 Original-Received: from localhost ([127.0.0.1]:39644 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LIEN5-0006ku-Ov for ged-emacs-devel@m.gmane.org; Wed, 31 Dec 2008 22:37:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LIEN1-0006jl-Em for emacs-devel@gnu.org; Wed, 31 Dec 2008 22:37:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LIEMz-0006jZ-5Q for emacs-devel@gnu.org; Wed, 31 Dec 2008 22:37:14 -0500 Original-Received: from [199.232.76.173] (port=58631 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LIEMy-0006jW-TA for emacs-devel@gnu.org; Wed, 31 Dec 2008 22:37:12 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:45183 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LIEMy-0001HP-GT for emacs-devel@gnu.org; Wed, 31 Dec 2008 22:37:12 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LIEMt-0002DP-BW for emacs-devel@gnu.org; Thu, 01 Jan 2009 03:37:07 +0000 Original-Received: from 221.6.39.130 ([221.6.39.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Jan 2009 03:37:07 +0000 Original-Received: from anhnmncb by 221.6.39.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Jan 2009 03:37:07 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 221.6.39.130 User-Agent: slrn/0.9.9p1/mm/ao (Win32) X-Antivirus: avast! (VPS 081231-1, 12/31/2008), Outbound message X-Antivirus-Status: Clean X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:107494 Archived-At: On 2009-01-01, Jason Rumney wrote: > anhnmncb wrote: >> On 2008-12-25, anhnmncb wrote: >> >>> Is there a varible that control the expanding behivior when on windows? >>> I find that *shell* sometimes does strange thing when cd dir with /, the >>> shell prompt is still the old dir, but actually I have changed to the new >>> dir. With \, no strange happens. >>> > > Have you tried changing the value of comint-completion-addsuffix? I have tried (setq comint-completion-addsuffix '("\\" . " ")) Then shell> cd ..\foo you will find that emacs changes it to shell> cd ../foo\ the result I want is shell > cd ..\foo\. -- Regards, anhnmncb