[Top][All Lists]

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

bug#4050: 23.1.50; iswitchb virtual buffers don't play well with symlink

From: Stephen Eglen
Subject: bug#4050: 23.1.50; iswitchb virtual buffers don't play well with symlinks
Date: Tue, 15 Sep 2009 12:00:22 +0100

I've looked athe bug that Tassilo submitted, and can see the problem.
It occurs when the name of the symlink differs from the name of the file
pointed to. e.g. if I do

ln -s teach txt/org/teaching.org

Then if I have previously visited the file as 'teach', Emacs opens it as
'teach', rather than 'teaching.org'

When iswitchb opens teach, it uses find-file-noselect, which opens the
file 'teaching.org' with that name as the buffer, rather than using the
name 'teach'.  The fix then is to tell iswitchb to use the name returned
by find-file-noselect.  I've attached a new version of the function
iswitchb-read-buffer - please can you test it to see that it solves the
problem for you Tassilo, and then I'll commit a patch.  I guess the only
issue is whether the buffer should be called the name of the symlink
'teach' or the name of the real file 'teaching.org' - is there a way to
tell Emacs to prefer the symlink name?

Thanks for the report -- I didn't even follow the recentf code in
iswitchb, it was contributed by someone else.


Attachment: i.el
Description: Text Data

reply via email to

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