From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: [david.hansen@gmx.net: Re: comint's directory tracking doesn't understand \( or \)] Date: Sun, 04 Mar 2007 20:32:37 +0100 Message-ID: <853b4kold6.fsf@lola.goethe.zz> References: <871wk56tjh.fsf@localhorst.mine.nu> <87wt1xhv0u.fsf@stupidchicken.com> <85ejo5j9bj.fsf@lola.goethe.zz> <87irdgkdy1.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1173036782 11960 80.91.229.12 (4 Mar 2007 19:33:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 4 Mar 2007 19:33:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 04 20:32:55 2007 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 1HNwRy-000069-Tt for ged-emacs-devel@m.gmane.org; Sun, 04 Mar 2007 20:32:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HNwRy-0007vJ-EW for ged-emacs-devel@m.gmane.org; Sun, 04 Mar 2007 14:32:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HNwRm-0007vE-Q2 for emacs-devel@gnu.org; Sun, 04 Mar 2007 14:32:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HNwRm-0007v2-1s for emacs-devel@gnu.org; Sun, 04 Mar 2007 14:32:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HNwRl-0007uz-Qu for emacs-devel@gnu.org; Sun, 04 Mar 2007 14:32:41 -0500 Original-Received: from mail-in-03.arcor-online.net ([151.189.21.43]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HNwRl-0005Wl-F7 for emacs-devel@gnu.org; Sun, 04 Mar 2007 14:32:41 -0500 Original-Received: from mail-in-01-z2.arcor-online.net (mail-in-01-z2.arcor-online.net [151.189.8.13]) by mail-in-03.arcor-online.net (Postfix) with ESMTP id 1EED743EC4; Sun, 4 Mar 2007 20:32:40 +0100 (CET) Original-Received: from mail-in-10.arcor-online.net (mail-in-10.arcor-online.net [151.189.21.50]) by mail-in-01-z2.arcor-online.net (Postfix) with ESMTP id 0FD21EF834; Sun, 4 Mar 2007 20:32:40 +0100 (CET) Original-Received: from lola.goethe.zz (dslb-084-061-052-195.pools.arcor-ip.net [84.61.52.195]) by mail-in-10.arcor-online.net (Postfix) with ESMTP id DD36ABC5E7; Sun, 4 Mar 2007 20:32:39 +0100 (CET) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id EA08C1C460D3; Sun, 4 Mar 2007 20:32:37 +0100 (CET) In-Reply-To: <87irdgkdy1.fsf@stupidchicken.com> (Chong Yidong's message of "Sun\, 04 Mar 2007 14\:26\:30 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) X-detected-kernel: Linux 2.4-2.6 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:67300 Archived-At: Chong Yidong writes: > David Kastrup writes: > >>> BTW, I can't seem to reproduce the problem referenced in the original >>> bug report. >>> >>> M-x shell RET >>> ~ $ cd /tmp/ >>> /tmp $ mkdir /tmp/'(2007)' >>> /tmp $ cd \(2007\) >>> /tmp/(2007) $ pwd >>> >>> => /tmp/(2007) >> >> Uh, I guess you should not use >> pwd RET >> but rather >> M-x pwd RET >> >> for checking the problem. > > I understand the problem now (the original recipe wasn't clear). > > I don't think we should make the proposed change to comint.el. > AFAIK, the detailed rules for how backslash escape works is, in > principle, different from shell to shell, and even if we choose to > obey (e.g.) bash semantics for backslash escapes, we might still be > incompatible with other shells. This might also introduce subtle > bugs into non-shell uses of comint mode. > > It seems there will always be *some* way of confusing the directory > tracker: that's what `M-x dirs' is for. Maybe the directory tracker should check whether the directory it is thinking of exists, and use `dirs' alias `shell-resync-dirs' automatically if it finds that it doesn't. I think it currently instead just stays where it was previously. Which rarely is helpful. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum