From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [david.hansen@gmx.net: Re: comint's directory tracking doesn't understand \( or \)] Date: Mon, 05 Mar 2007 21:23:32 -0500 Message-ID: References: <871wk56tjh.fsf@localhorst.mine.nu> <87k5xw8b07.fsf@localhorst.mine.nu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1173147853 31242 80.91.229.12 (6 Mar 2007 02:24:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Mar 2007 02:24:13 +0000 (UTC) Cc: David Hansen , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 06 03:24:05 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 1HOPLM-00072c-Ms for ged-emacs-devel@m.gmane.org; Tue, 06 Mar 2007 03:24:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOPLL-0000mV-Tt for ged-emacs-devel@m.gmane.org; Mon, 05 Mar 2007 21:23:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HOPLA-0000mQ-Ha for emacs-devel@gnu.org; Mon, 05 Mar 2007 21:23:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HOPL8-0000mE-4h for emacs-devel@gnu.org; Mon, 05 Mar 2007 21:23:47 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOPL7-0000mB-VP for emacs-devel@gnu.org; Mon, 05 Mar 2007 21:23:45 -0500 Original-Received: from tomts25.bellnexxia.net ([209.226.175.188] helo=tomts25-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HOPL0-0006es-3M; Mon, 05 Mar 2007 21:23:38 -0500 Original-Received: from pastel.home ([74.12.206.221]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070306022332.XPUN1521.tomts25-srv.bellnexxia.net@pastel.home>; Mon, 5 Mar 2007 21:23:32 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 6FC597F38; Mon, 5 Mar 2007 21:23:32 -0500 (EST) In-Reply-To: (Richard Stallman's message of "Mon\, 05 Mar 2007 16\:50\:45 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) X-detected-kernel: Solaris 8 (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:67392 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. Wouldn't it be better to move it to shell.el? I.e. create a new function shell-argument? Stefan