From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Chris Moore" Newsgroups: gmane.emacs.devel Subject: Re: [david.hansen@gmx.net: Re: comint's directory tracking doesn't understand \( or \)] Date: Mon, 5 Mar 2007 00:22:48 +0100 Message-ID: References: <871wk56tjh.fsf@localhorst.mine.nu> <87wt1xhv0u.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1173050623 21615 80.91.229.12 (4 Mar 2007 23:23:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 4 Mar 2007 23:23:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Chong Yidong" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 05 00:23:36 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 1HO03D-0007QI-8g for ged-emacs-devel@m.gmane.org; Mon, 05 Mar 2007 00:23:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HO03C-000378-P1 for ged-emacs-devel@m.gmane.org; Sun, 04 Mar 2007 18:23:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HO02X-0002vI-2h for emacs-devel@gnu.org; Sun, 04 Mar 2007 18:22:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HO02V-0002tj-5x for emacs-devel@gnu.org; Sun, 04 Mar 2007 18:22:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HO02U-0002tW-Qg for emacs-devel@gnu.org; Sun, 04 Mar 2007 18:22:50 -0500 Original-Received: from nf-out-0910.google.com ([64.233.182.185]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HO02U-0002VH-Cr for emacs-devel@gnu.org; Sun, 04 Mar 2007 18:22:50 -0500 Original-Received: by nf-out-0910.google.com with SMTP id n15so1855243nfc for ; Sun, 04 Mar 2007 15:22:49 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=FsYnyTkfBq2LadOXEau6+Wf+D10XegwnqEJx6oEPOuHBhnTmAGxc76wygeJQ8iB4bsMpu0t8F7aFfW5nxtNcdJhzOvrcA2iE+I9FIK9fvYEVij58SI9wjmdwYnEVGzFW49+q3yQVZoIpmhjS48hUzVmhGyEBR4p/O2o3eYeuW38= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=oFAEA3RTq6DCG/y7YMZH0gm4wmMiN/WJDLeBdqtnsg+Aq04dZZPJo2jBfMmZ2OuXBfpHVqEuRp0koEClaPtW8U80Mb0HWn9cXoHNdl5tW2bNUHm19oioqikVrtboFUoVN3PgToHw+Gr0NeDB/0j3Rz5teVpTCFht4gt2/UjQ7uU= Original-Received: by 10.82.152.16 with SMTP id z16mr4284750bud.1173050568480; Sun, 04 Mar 2007 15:22:48 -0800 (PST) Original-Received: by 10.82.179.3 with HTTP; Sun, 4 Mar 2007 15:22:48 -0800 (PST) In-Reply-To: <87wt1xhv0u.fsf@stupidchicken.com> Content-Disposition: inline X-Google-Sender-Auth: a247bd4919b68821 X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) 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:67322 Archived-At: On 3/4/07, Chong Yidong wrote: > BTW, I can't seem to reproduce the problem referenced in the original > bug report. > /tmp/(2007) $ pwd > => /tmp/(2007) The bug I was reporting is that the buffer's directory doesn't change correctly. I realise that the inferior subprocess' working directory changes correctly, but comint attempts to track the shell's directory. That way, you can hit C-x C-f and have it default to the directory you are currently 'cd'ed to. For years I used and loved "J Shell" http://download.mirror.ac.uk/sites/ftp.gnu.org/gnu/elisp-archive/modes/J-Shell-2.1.tar.Z it almost never gets out of sync with the shell's working directory, because it redefines the 'cd' (and 'pushd', 'popd', 'rlogin', etc) commands to echo some special control characters to the shell mode telling it each time the working directory changes. It would even arrange for the shell buffer's working directory to become /user@host:/path/file when the user logged on to a remote machine inside the shell buffer. It's unfortunate that the default Emacs M-x shell mode is so flaky in this regard. Even something as simple as "cd $PROJECT" confuses it.