From: Chong Yidong <cyd@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: shell-dir-cookie-re in Emacs 24
Date: Mon, 02 Jan 2012 16:14:26 +0800 [thread overview]
Message-ID: <87aa66ttb1.fsf@gnu.org> (raw)
In-Reply-To: <jwv4nwfvxj7.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sun, 01 Jan 2012 18:07:01 -0500")
Stefan Monnier <monnier@iro.umontreal.ca> 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.
prev parent reply other threads:[~2012-01-02 8:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-01 14:57 shell-dir-cookie-re in Emacs 24 Chong Yidong
2012-01-01 23:07 ` Stefan Monnier
2012-01-02 8:14 ` Chong Yidong [this message]
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=87aa66ttb1.fsf@gnu.org \
--to=cyd@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.