From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Samuel Wales Newsgroups: gmane.emacs.help Subject: Re: dirtrack (shell mode) not working Date: Sun, 3 May 2009 19:15:54 -0700 Message-ID: <20524da70905031915ic6b2631p863a33d92b8de20a@mail.gmail.com> References: <20524da70905031909j5426ee1fpde7e1e93f83a8a88@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1241403412 11780 80.91.229.12 (4 May 2009 02:16:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 May 2009 02:16:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 04 04:16:43 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M0njW-0001Lw-ID for geh-help-gnu-emacs@m.gmane.org; Mon, 04 May 2009 04:16:42 +0200 Original-Received: from localhost ([127.0.0.1]:42644 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0njV-0004vn-Fp for geh-help-gnu-emacs@m.gmane.org; Sun, 03 May 2009 22:16:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M0njA-0004ve-CO for help-gnu-emacs@gnu.org; Sun, 03 May 2009 22:16:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M0nj5-0004v0-Mh for help-gnu-emacs@gnu.org; Sun, 03 May 2009 22:16:19 -0400 Original-Received: from [199.232.76.173] (port=37166 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0nj5-0004uv-FM for help-gnu-emacs@gnu.org; Sun, 03 May 2009 22:16:15 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.248]:49341) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M0nj5-0006Db-1L for help-gnu-emacs@gnu.org; Sun, 03 May 2009 22:16:15 -0400 Original-Received: by rv-out-0708.google.com with SMTP id f25so3729714rvb.6 for ; Sun, 03 May 2009 19:16:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=HZ5Ws72EdPCJNbSxiJXnfax0VwwWfKzeFYuIO+Wondg=; b=htVEfX8tgDZkY9FtI9SVasLavx4fx/O5yTYNp8O8VSrIQ7X59IS/eAVYVUhMV6sygC r0zmSez1sKpCrCumMbcR9lgWtJ/l2LkfZ64k/VAKS36b3b/RdUfT5YRqfyBgq/A80s15 QHejr/FI83Q1T2pXtgKK1Vke46jOpczHMcBYM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=S86nP7QXDXYyaBFw1KLy1L+v/8HoUrHixEWLTGdG0EfBDFmbO9pHBqnhpzMj9KtX8q wb2/rm4DHn+RRXkxxcET6gIL8NzbFFCjWeOk1oCaxsAI3YHKx/18Vts6mj1EuulB1mI8 ukPFMoWaQtYUL0mPY8ulPJxGtOnWrQXtXmRPo= Original-Received: by 10.114.159.6 with SMTP id h6mr3843656wae.211.1241403374119; Sun, 03 May 2009 19:16:14 -0700 (PDT) In-Reply-To: <20524da70905031909j5426ee1fpde7e1e93f83a8a88@mail.gmail.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64162 Archived-At: dirtrack debugging reveals this. Input `cd .. [33m [0m [35m 03-Sun-19-12-32 [0m L4 [1;34m ~/Desktop/A$ [0m ' failed to match `dirtrack-regexp' Any idea why? (See my settings in the parent post for why this should work= .) Thanks. On Sun, May 3, 2009 at 19:09, Samuel Wales wrote: > Shell directory tracking fails to understand when I cd to a > symlink or do anything else that emacs cannot figure out. > Doing cd .. seems to make emacs think that pwd is above the > previous directory. =A0In the shell, for what it's worth, I > have this: > > =A0 =A0 =A0 =A0#i like physical directories. =A0this might only be needed= for bash. > =A0 =A0 =A0 =A0alias cd=3D'cd -P' > > I have tried various ways. =A0The following should work -- it > should read from the prompt, which looks like > "03-Sun-18-57-17 L4 ~/Desktop/A/alpha$ ". =A0The regular > expression works when performed manually, so it doesn't seem > to be an issue with text properties. > > What am I doing wrong? > > Thanks. > > ;;will need updating if change prompt in shell > ;;(progn (search-backward-regexp (first dirtrack-list)) (match-string 1)) > ;;this re works, but dirtrack does not actualy use the prompt :( > (setq-default dirtrack-list '("^[0-9][0-9]-.* L[0-9] \\(.*\\)[$#] " 1)) > (add-to-list 'comint-output-filter-functions 'dirtrack) > > (setf comint-buffer-maximum-size (* 10 1000)) > (add-to-list 'comint-output-filter-functions 'comint-truncate-buffer) > > (ansi-color-for-comint-mode-on) > > -- > Myalgic encephalomyelitis denialism is causing death and severe suffering > worse than MS. =A0Conflicts of interest are destroying science. =A0Anybod= y can > get the disease at any time permanently. =A0Do science and justice matter= to > you? =A0http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm > --=20 Myalgic encephalomyelitis denialism is causing death and severe suffering worse than MS. Conflicts of interest are destroying science. Anybody can get the disease at any time permanently. Do science and justice matter to you? http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm