bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: 22.2.1 desktop / uniquify: wrong buffer naming for multiple files of


From: Juanma Barranquero
Subject: Re: 22.2.1 desktop / uniquify: wrong buffer naming for multiple files of the same name
Date: Fri, 25 Apr 2008 18:11:55 +0200

On Fri, Apr 25, 2008 at 4:20 AM, Stefan Monnier
<address@hidden> wrote:

>  Yes, it sounds like a uniquify problem, tho it looks like it's triggered
>  by the way desktop loads the file.

Definitely it is a uniquify problem, related to using
`uniquify-min-dir-content' > 0.

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?

 Juanma




reply via email to

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