GNU bug report logs -
#36830
26.2; find-file-visit-truename is not honored as file local variable
Previous Next
Reported by: Gustavo Barros <gusbrs.2016 <at> gmail.com>
Date: Sun, 28 Jul 2019 15:22:01 UTC
Severity: normal
Found in version 26.2
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #23 received at 36830 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> I don't think this variable was designed to be set from file-local
> variables block. Visiting a file and naming its buffer are two racy
> actions, and where there's a race there will be chicken-and-egg type
> of problems.
[...]
> I expect such renaming to cause future bugs, FWIW. Or maybe not, but
> this is beyond hacky, IMO.
Yes, I think so, too, but:
> Maybe we should just document that this variable cannot be file-local.
files.el has this:
(put 'find-file-visit-truename 'safe-local-variable 'booleanp)
It was changed to booleanp in 2007 (from the presumably invalid
`boolean'), so it didn't work before 2007 for that reason, and it hasn't
worked after 2007 because it's checked too late.
So perhaps the fix here is to just remove that `put'?
On the other hand, it would be nice if it worked, because it seems like
a pretty useful thing to be able to customise on a per-file basis.
Perhaps.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 5 years and 301 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.