From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: [david.hansen@gmx.net: Re: comint's directory tracking doesn't understand \( or \)] Date: Sun, 04 Mar 2007 14:26:30 -0500 Message-ID: <87irdgkdy1.fsf@stupidchicken.com> References: <871wk56tjh.fsf@localhorst.mine.nu> <87wt1xhv0u.fsf@stupidchicken.com> <85ejo5j9bj.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1173036423 10911 80.91.229.12 (4 Mar 2007 19:27:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 4 Mar 2007 19:27:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 04 20:26:56 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 1HNwM7-0005vi-Ms for ged-emacs-devel@m.gmane.org; Sun, 04 Mar 2007 20:26:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HNwM7-0006AB-3b for ged-emacs-devel@m.gmane.org; Sun, 04 Mar 2007 14:26:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HNwLw-0006A6-TB for emacs-devel@gnu.org; Sun, 04 Mar 2007 14:26:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HNwLw-00069y-0b for emacs-devel@gnu.org; Sun, 04 Mar 2007 14:26:40 -0500 Original-Received: from south-station-annex.mit.edu ([18.72.1.2]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HNwLv-0004zb-O3; Sun, 04 Mar 2007 14:26:39 -0500 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id l24JQcM2015924; Sun, 4 Mar 2007 14:26:38 -0500 (EST) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by grand-central-station.mit.edu (8.13.6/8.9.2) with ESMTP id l24JQVZv019381; Sun, 4 Mar 2007 14:26:31 -0500 (EST) Original-Received: from localhost (SYDNEYPACIFIC-FIFTY-SIX.MIT.EDU [18.95.5.56]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id l24JQUt8018075; Sun, 4 Mar 2007 14:26:30 -0500 (EST) Original-Received: from cyd by localhost with local (Exim 3.36 #1 (Debian)) id 1HNwLm-0001Wt-00; Sun, 04 Mar 2007 14:26:30 -0500 In-Reply-To: <85ejo5j9bj.fsf@lola.goethe.zz> (David Kastrup's message of "Sun\, 04 Mar 2007 16\:51\:44 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) X-Scanned-By: MIMEDefang 2.42 X-Spam-Score: -2.599 X-detected-kernel: Solaris 9.1 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:67299 Archived-At: 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.