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

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

bug#58447: [PATCH] In project-find-file, add absolute file name to histo


From: Dmitry Gutov
Subject: bug#58447: [PATCH] In project-find-file, add absolute file name to history
Date: Fri, 16 Dec 2022 00:20:47 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 15/12/2022 19:24, Juri Linkov wrote:
But please also note that its value 'project--read-file-absolute'
is also broken.  It asks confirmation for re-visiting even absolute
filenames, because currently 'C-x p f' adds abbreviated filenames,
but confirmation checks for absolute.
Does the breakage show itself only when you add a history entry using one
value of project-read-file-name-function and then try to look it up when
using another value of project-read-file-name-function?

If so, that's probably bearable enough for now (people don't really change
this value often). Fixing it will require resolving the abbreviation
situation. And we might as well switch to relative names in project-files
first.
Visiting with 'C-x C-f' adds an abbreviated file name to the history.
So it looks strange that 'C-x p f M-p' doesn't understand that it's
absolute even though it's abbreviated.

Fair enough.

Can we do something with it, though, without piping all-files through #'expand-file-name?





reply via email to

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