unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#74627: .dir-locals.el warning messages are confusing
@ 2024-11-30 17:20 Björn Lindqvist
  2024-12-05  9:38 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Björn Lindqvist @ 2024-11-30 17:20 UTC (permalink / raw)
  To: 74627

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"? What does the asterisk (*) mean? Could the
descriptions for "!" and "i" be clearer so it is more obvious what is
applied and what is ignored?


-- 
mvh/best regards Björn Lindqvist





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#74627: .dir-locals.el warning messages are confusing
  2024-11-30 17:20 bug#74627: .dir-locals.el warning messages are confusing Björn Lindqvist
@ 2024-12-05  9:38 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2024-12-05  9:38 UTC (permalink / raw)
  To: Björn Lindqvist, Stefan Monnier; +Cc: 74627

> From: Björn Lindqvist <bjourne@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"





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-05  9:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-30 17:20 bug#74627: .dir-locals.el warning messages are confusing Björn Lindqvist
2024-12-05  9:38 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).