GNU bug report logs -
#74627
.dir-locals.el warning messages are confusing
Previous Next
Full log
View this message in rfc822 format
> From: Björn Lindqvist <bjourne <at> gmail.com>
> Date: Sat, 30 Nov 2024 18:20:35 +0100
>
> Warnings about potential security issues should be easy to understand,
> but the warnings produced by .dir-locals.el are not. When I open a
> file in the Emacs source code it shows:
>
> The local variables list in /home/bjourne/p/emacs/
> or .dir-locals.el contains values that may not be safe (*).
>
> Why does it say "or"?
Because that function is called with a single flag argument which
could be set non-nil either due to unsafe file-local variables or due
to .dir-locals.el.
> What does the asterisk (*) mean?
It means the variables marked with the asterisk in the list of
below this text could be unsafe.
> Could the descriptions for "!" and "i" be clearer so it is more
> obvious what is applied and what is ignored?
Please tell what is unclear there. The current text is
! -- to apply the local variables list, and permanently mark these
values (*) as safe (in the future, they will be set automatically.)
i -- to ignore the local variables list, and permanently mark these
values (*) as ignored"
This bug report was last modified 167 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.