From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [david.hansen@gmx.net: Re: comint's directory tracking doesn't understand \( or \)] Date: Mon, 05 Mar 2007 16:50:45 -0500 Message-ID: References: <871wk56tjh.fsf@localhorst.mine.nu> <87k5xw8b07.fsf@localhorst.mine.nu> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1173131675 16844 80.91.229.12 (5 Mar 2007 21:54:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Mar 2007 21:54:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Hansen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 05 22:54:20 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 1HOL8M-0005Bp-82 for ged-emacs-devel@m.gmane.org; Mon, 05 Mar 2007 22:54:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOL8M-0006ih-1l for ged-emacs-devel@m.gmane.org; Mon, 05 Mar 2007 16:54:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HOL6b-000680-8m for emacs-devel@gnu.org; Mon, 05 Mar 2007 16:52:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HOL6a-00067N-Bn for emacs-devel@gnu.org; Mon, 05 Mar 2007 16:52:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOL6a-00067G-6S for emacs-devel@gnu.org; Mon, 05 Mar 2007 16:52:28 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HOL6Z-00069M-MU for emacs-devel@gnu.org; Mon, 05 Mar 2007 16:52:27 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1HOL4v-0005eh-33; Mon, 05 Mar 2007 16:50:45 -0500 In-reply-to: <87k5xw8b07.fsf@localhorst.mine.nu> (message from David Hansen on Mon, 05 Mar 2007 07:23:04 +0100) X-detected-kernel: 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:67379 Archived-At: shell-mode watches your input for commands that change the directory (mainly the shells `cd' command but also `popd', `pushd' and maybe others). shell-mode then just use the first argument - (comint-arguments 1 1) - to this command to keep track of the working dir of the shell process. This patch would be safer if you add a new function comint-dir-argument which does the new thing, and is used only for dir tracking. Then you could leave comint-arguments unchanged, and avoid the risk of breaking something else with some other shell. With that alteration, I think we could install it now.