[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shell-dir-cookie-re in Emacs 24
From: |
Stefan Monnier |
Subject: |
Re: shell-dir-cookie-re in Emacs 24 |
Date: |
Sun, 01 Jan 2012 18:07:01 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
> Emacs 24 has this in NEWS:
> *** New variable `shell-dir-cookie-re'.
> If set to an appropriate regexp, Shell mode can track your cwd by
> reading it from your prompt.
> Could you explain what the purpose of this is? The docstring says "It
> can be used instead of or in addition to `dirtrack-mode'", but what does
> it do that dirtrack-mode doesn't already do?
IIRC it's a poorly designed feature which should really be merged with
dirtrack-mode (it's basically a lighter-weight version of dirtrack-mode,
I think). The main distinguishing feature is that shell-dir-cookie-re
tries to work even if the prompt does not contain an absolute directory
(e.g. I use it with prompts which only contain the last 2 elements of
the absolute file name).
Stefan