From: Dan Nicolaescu <dann@ics.uci.edu>
To: Magnus Henoch <mange@freemail.hu>
Cc: 3224@emacsbugs.donarmstrong.com
Subject: bug#3224: 23.0.92; vc-dir vs uniquify: wrong directory used
Date: Tue, 4 Aug 2009 05:30:26 -0700 (PDT) [thread overview]
Message-ID: <200908041230.n74CUQUd025123@godzilla.ics.uci.edu> (raw)
In-Reply-To: <84my9rfuhg.fsf@linux-b2a3.site> (Magnus Henoch's message of "Tue, 05 May 2009 16:19:07 +0100")
Magnus Henoch <mange@freemail.hu> writes:
> Please write in English if possible, because the Emacs maintainers
> usually do not have translators to read other languages for them.
>
> Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list.
>
> Please describe exactly what actions triggered the bug
> and the precise symptoms of the bug:
>
> I have uniquify-buffer-name-style set to post-forward, which means that
> I expect buffers with the same name to be called BUFFER|DIR. This
> doesn't quite work with vc-dir: the DIR part corresponds to the setting
> of `default-directory' in the buffer where I invoke the command, instead
> of the directory I specify.
>
> To reproduce, start "emacs -Q" and evaluate:
>
> (progn
> (require 'uniquify)
> (setq uniquify-buffer-name-style 'post-forward)
> (cd "/tmp")
> (make-directory "foo")
> (make-directory "bar")
> (vc-dir "/tmp/foo")
> (cd "/tmp/foo")
> (vc-dir "/tmp/bar"))
>
> You will get two buffers, "*vc-dir*|foo" displaying /tmp/bar, and
> "*vc-dir*|/tmp" displaying /tmp/foo.
>
> I tried to fix this by binding default-directory around
> create-file-buffer in vc-dir-prepare-status-buffer, which partly fixed
> the problem: the buffer for bar had a correct name, but the buffer for
> foo was still "*vc-dir*|/tmp".
I am not familiar with uniquify, but after binding default-directory in
vc-dir-prepare-status-buffer, I get the result above.
And it is identical to what happens when doing:
(progn
(require 'uniquify)
(setq uniquify-buffer-name-style 'post-forward)
(cd "/tmp")
(make-directory "foo")
(make-directory "bar")
(cd "/tmp/foo")
(create-file-buffer "*vc-dir*")
(cd "/tmp/bar")
(create-file-buffer "*vc-dir*"))
so either this is a problem with uniquify, or uniquify it's just working
as expected.
next prev parent reply other threads:[~2009-08-04 12:30 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <f7ccd24b1001071940k28f0f35y508b7f1c26640f9f@mail.gmail.com>
2009-05-05 15:19 ` bug#3224: 23.0.92; vc-dir vs uniquify: wrong directory used Magnus Henoch
2009-08-04 12:30 ` Dan Nicolaescu [this message]
2010-01-06 4:00 ` Juanma Barranquero
2010-01-06 4:55 ` Dan Nicolaescu
2010-01-06 5:38 ` Stefan Monnier
2010-01-06 10:17 ` Juanma Barranquero
2010-01-06 14:28 ` Stefan Monnier
2010-01-07 11:14 ` Juanma Barranquero
2010-01-07 14:54 ` Stefan Monnier
2010-01-07 15:09 ` Juanma Barranquero
2010-01-07 19:53 ` Stefan Monnier
2010-01-07 23:05 ` Juanma Barranquero
2010-01-08 3:22 ` Stefan Monnier
2010-01-07 15:10 ` Dan Nicolaescu
2010-01-07 15:19 ` Juanma Barranquero
2010-01-07 19:57 ` Stefan Monnier
2010-01-08 3:41 ` bug#3224: marked as done (23.0.92; vc-dir vs uniquify: wrong directory used) Emacs bug Tracking System
2009-09-24 20:53 ` bug#4553: 23.1; uniquify gives *vc-dir* buffer the wrong name Tom Tromey
2009-09-24 21:32 ` Dan Nicolaescu
2009-09-24 21:40 ` Processed: " Emacs bug Tracking System
2010-01-08 3:41 ` bug#4553: marked as done (23.1; uniquify gives *vc-dir* buffer the wrong name) Emacs bug Tracking System
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200908041230.n74CUQUd025123@godzilla.ics.uci.edu \
--to=dann@ics.uci.edu \
--cc=3224@emacsbugs.donarmstrong.com \
--cc=mange@freemail.hu \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).