From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Juanma Barranquero" <lekktu@gmail.com>
Cc: bug-gnu-emacs@gnu.org, Martin Fischer <parozusa@web.de>
Subject: Re: 22.2.1 desktop / uniquify: wrong buffer naming for multiple files of the same name
Date: Tue, 29 Apr 2008 03:10:06 -0400 [thread overview]
Message-ID: <jwv4p9l9lxg.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <f7ccd24b0804250911ga524fabq68db80295ebb9192@mail.gmail.com> (Juanma Barranquero's message of "Fri, 25 Apr 2008 18:11:55 +0200")
ELISP> (find-file-noselect "c:/test/a/jack.txt")
> #<buffer a/jack.txt>
ELISP> (with-current-buffer (get-buffer "a/jack.txt")
> (rename-buffer "jack.txt" t))
> "a/jack.txt"
ELISP> (find-file-noselect "c:/test/b/jack.txt")
> #<buffer b/jack.txt>
ELISP> (with-current-buffer (get-buffer "b/jack.txt")
> (rename-buffer "jack.txt" t))
> "b/jack.txt"
> However:
ELISP> (find-file-noselect "c:/test/b/jack.txt")
> #<buffer b/jack.txt>
ELISP> (with-current-buffer (get-buffer "b/jack.txt")
> (rename-buffer "jack.txt" t))
> "b/jack.txt"
ELISP> (find-file-noselect "c:/test/a/jack.txt")
> #<buffer a/jack.txt>
ELISP> (with-current-buffer (get-buffer "a/jack.txt")
> (rename-buffer "jack.txt" t))
> "jack.txt"
> Stefan, can you take a look at it?
I believe this case now works correctly,
Stefan
next prev parent reply other threads:[~2008-04-29 7:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-24 7:42 22.2.1 desktop / uniquify: wrong buffer naming for multiple files of the same name Martin Fischer
2008-04-24 13:48 ` Juanma Barranquero
2008-04-25 2:20 ` Stefan Monnier
2008-04-25 16:11 ` Juanma Barranquero
2008-04-29 7:10 ` Stefan Monnier [this message]
2008-04-29 8:21 ` Juanma Barranquero
[not found] ` <mailman.10913.1209453021.18990.bug-gnu-emacs@gnu.org>
2008-04-29 10:26 ` Martin Fischer
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=jwv4p9l9lxg.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=bug-gnu-emacs@gnu.org \
--cc=lekktu@gmail.com \
--cc=parozusa@web.de \
/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.