emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shell-dir-cookie-re in Emacs 24


From: Chong Yidong
Subject: Re: shell-dir-cookie-re in Emacs 24
Date: Mon, 02 Jan 2012 16:14:26 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

Stefan Monnier <address@hidden> writes:

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

OK, I'll merge it into dirtrack-mode and get rid of shell-dir-cookie-re.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]