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: Mon, 4 May 2009 09:44:00 -0700 Message-ID: <20524da70905040944u31f648f8h71c17dfca3c654ec@mail.gmail.com> References: <20524da70905031909j5426ee1fpde7e1e93f83a8a88@mail.gmail.com> <20524da70905031915ic6b2631p863a33d92b8de20a@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1241455536 20212 80.91.229.12 (4 May 2009 16:45:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 May 2009 16:45:36 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 04 18:45:26 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 1M11ID-0003Xr-2j for geh-help-gnu-emacs@m.gmane.org; Mon, 04 May 2009 18:45:25 +0200 Original-Received: from localhost ([127.0.0.1]:45712 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M11IC-000820-Ep for geh-help-gnu-emacs@m.gmane.org; Mon, 04 May 2009 12:45:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M11Gx-0006wg-3x for help-gnu-emacs@gnu.org; Mon, 04 May 2009 12:44:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M11Gs-0006pc-A6 for help-gnu-emacs@gnu.org; Mon, 04 May 2009 12:44:06 -0400 Original-Received: from [199.232.76.173] (port=56116 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M11Gs-0006pC-0Y for help-gnu-emacs@gnu.org; Mon, 04 May 2009 12:44:02 -0400 Original-Received: from wf-out-1314.google.com ([209.85.200.171]:61932) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M11Gr-0007ZL-K9 for help-gnu-emacs@gnu.org; Mon, 04 May 2009 12:44:01 -0400 Original-Received: by wf-out-1314.google.com with SMTP id 23so2961345wfg.24 for ; Mon, 04 May 2009 09:44:00 -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 :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Hz5LHhmCS09GXTCWygPeaKUhrvYBNlMdXXY2RcmKceU=; b=G3vy62ifj4gvGpfXPeZDBpwolOWYI+RvbfDGsp99T5tqhcZd53Ao1szAkwpRLrXm9W ympIoscZa62sDzi6t21x04zCLOp2WcBgDwgLgRqyob9WwQfAZf3R5J5cuO6nzzW1zfqm gt8kF627J2Cnexcl3EL3JLxpa/8kJIk2gAq84= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=jKOcHN2Z1TMJ3Ic1Cq9G7A+VamNwhKQx5fmOfyLYnJbSv9NqlAZX+P6g3koFiHFjbK qPikaKKrW2rJ+TyBNjecMIYPBhn6PrWICVoKL2gwE0Ga5NFus753Y5L2SE4/2sIvNEyH I2NtI2ZxofJgI3FiqIRAvR2y23+J1zJWZwC8k= Original-Received: by 10.114.184.7 with SMTP id h7mr4343983waf.151.1241455440536; Mon, 04 May 2009 09:44:00 -0700 (PDT) In-Reply-To: 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:64176 Archived-At: On 2009-05-04, Peter Dyballa wrote: >> Input `cd .. >> [33m [0m [35m 03-Sun-19-12-32 [0m L4 [1;34m ~/Desktop/A$ >> [0m ' failed to match `dirtrack-regexp' The big question here is why manual matching works perfectly fine. Why would ansi colors throw dirtrack off when regexp search backward accurately identifies the path and only the path? > I'd remove the ANSI Esc garbage from the prompt (they're good enough > for use in terminal emulations). The variable comint-highlight-prompt > can make it look to be easily recognised. There are also comint- > prompt-regexp and shell-prompt-pattern. It would be a shame to get rid of the colors in the prompt, as they separate its components visually for me in a way that makes them easier to notice. The first variable sets a single color, while the second two, afaik, only affect movement. Is that correct? > Greetings Thanks. I like your Klingon joke.