From: YE via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 64621@debbugs.gnu.org
Subject: bug#64621: 28.2; [PATCH] Document ':all' of 'enable-local-variables' in Emacs manual
Date: Fri, 14 Jul 2023 19:11:56 +0300 [thread overview]
Message-ID: <m2r0pajwvn.fsf@ego.team> (raw)
[-- Attachment #1: Type: text/plain, Size: 403 bytes --]
Hi,
The suggested patch documents ':all' value of 'enable-local-variables'
in the Emacs manual.
Currently, the last sentence of 'enable-local-variables' description
(the one starting with "Any other value ...") is not correct and brings
confusion.
I first doubted whether ':all' value was omitted on purpose from the
Emacs manual, but it is already mentioned in doc/emacs/misc.texi (Host
Security).
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Document ':all' of 'enable-local-variables' in Emacs manual --]
[-- Type: text/x-patch, Size: 1392 bytes --]
From d431b2a4b7c9ecb8d87ca2c1217aa99ae120b119 Mon Sep 17 00:00:00 2001
From: YugaEgo <yet@ego.team>
Date: Fri, 14 Jul 2023 18:49:36 +0300
Subject: [PATCH] Improve doc of 'enable-local-variables' in Emacs manual
* doc/emacs/custom.texi (Safe File Variables): Document value ':all'
---
doc/emacs/custom.texi | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi
index d8221f51425..b527af46fa7 100644
--- a/doc/emacs/custom.texi
+++ b/doc/emacs/custom.texi
@@ -1368,9 +1368,11 @@ can include remote directories as well (@pxref{Remote Files}).
way Emacs processes local variables. Its default value is @code{t},
which specifies the behavior described above. If it is @code{nil},
Emacs simply ignores all file local variables. @code{:safe} means use
-only the safe values and ignore the rest. Any other value says to
-query you about each file that has local variables, without trying to
-determine whether the values are known to be safe.
+only the safe values and ignore the rest. @code{:all} instructs Emacs
+to set all file local variables (we advise not to use it permanently).
+Any other value says to query you about each file that has local
+variables, without trying to determine whether the values are known to
+be safe.
@vindex enable-local-eval
@vindex safe-local-eval-forms
--
2.39.2 (Apple Git-143)
next reply other threads:[~2023-07-14 16:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-14 16:11 YE via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-07-14 17:34 ` bug#64621: 28.2; [PATCH] Document ':all' of 'enable-local-variables' in Emacs manual Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2r0pajwvn.fsf@ego.team \
--to=bug-gnu-emacs@gnu.org \
--cc=64621@debbugs.gnu.org \
--cc=yet@ego.team \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).