all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: dirtrack (shell mode) not working
Date: Sun, 3 May 2009 19:15:54 -0700	[thread overview]
Message-ID: <20524da70905031915ic6b2631p863a33d92b8de20a@mail.gmail.com> (raw)
In-Reply-To: <20524da70905031909j5426ee1fpde7e1e93f83a8a88@mail.gmail.com>

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 <samologist@gmail.com> 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.  In the shell, for what it's worth, I
> have this:
>
>        #i like physical directories.  this might only be needed for bash.
>        alias cd='cd -P'
>
> I have tried various ways.  The following should work -- it
> should read from the prompt, which looks like
> "03-Sun-18-57-17 L4 ~/Desktop/A/alpha$ ".  The 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.  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
>



-- 
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




  reply	other threads:[~2009-05-04  2:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-04  2:09 dirtrack (shell mode) not working Samuel Wales
2009-05-04  2:15 ` Samuel Wales [this message]
2009-05-04  8:53   ` Peter Dyballa
2009-05-04 16:44     ` Samuel Wales
2009-05-04 19:51       ` Peter Dyballa
2009-05-04 22:03         ` Samuel Wales
2009-05-05  8:11           ` Peter Dyballa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20524da70905031915ic6b2631p863a33d92b8de20a@mail.gmail.com \
    --to=samologist@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.