From: Noam Postavsky <npostavs@users.sourceforge.net>
To: Robert Cochran <robert+Emacs@cochranmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation
Date: Fri, 5 Jan 2018 07:05:12 -0500 [thread overview]
Message-ID: <CAM-tV-_m1WSB5=2Tc4WkJE5RT6TG5xH0w1Ue+j-J8bLgQP2zrg@mail.gmail.com> (raw)
In-Reply-To: <87vaggrfqo.fsf@cochranmail.com>
On Fri, Jan 5, 2018 at 1:17 AM, Robert Cochran
<robert+Emacs@cochranmail.com> wrote:
> I somehow came to the conclusion that the way I did it was the simplest
> and cleanest to me. I noticed that `safe-local-variable-values' is nil
> by default and I took that as a hint (rightly or wrongly) to not touch
> the value directly. I was also aiming to prevent easily tampering with
> the variable, again, however right or wrong that particular decision
> seems to you.
Okay, I think preventing easy tampering (by the user) is not a useful goal.
> On that topic, since `safe-local-variable-values' is nil by default,
> where is it exactly that you would recommend I add this variable? A few
> quick greps didn't give me any clear ideas.
See `(elisp) File Local Variables':
You can specify safe values for a variable with a
`safe-local-variable' property. The property has to be a function of
one argument; any value is safe if the function returns non-`nil' given
that value. Many commonly-encountered file variables have
`safe-local-variable' properties; these include `fill-column',
`fill-prefix', and `indent-tabs-mode'. For boolean-valued variables
that are safe, use `booleanp' as the property value.
>> Solving Bug#4837 would be helpful for this, as currently there is no
>> practical way to fix/suppress the obsolete warnings in the code that
>> remains to support the obsolete option.
>>
>> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=4837
>
> Yeah, I was thinking about that. In private discussion with friends, it
> was mentioned that it could be a `declare' option - something like
> (declare no-warn-obsolete) - but that's not very satifying for anything
> other than defuns.
That would cover too much code as well.
next prev parent reply other threads:[~2018-01-05 12:05 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-04 9:40 [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation Robert Cochran
2018-01-04 13:22 ` Noam Postavsky
2018-01-05 3:51 ` Stefan Monnier
2018-01-05 6:17 ` Robert Cochran
2018-01-05 12:05 ` Noam Postavsky [this message]
2018-01-06 22:42 ` Robert Cochran
2018-01-08 12:25 ` Noam Postavsky
2018-01-08 18:50 ` Eli Zaretskii
2018-01-09 3:42 ` Robert Cochran
2018-01-09 13:24 ` Stefan Monnier
2018-01-10 6:28 ` Robert Cochran
2018-01-10 15:26 ` Eli Zaretskii
2018-01-10 15:57 ` Noam Postavsky
2018-01-10 16:17 ` Eli Zaretskii
2018-01-10 16:29 ` Noam Postavsky
2018-01-10 19:36 ` Eli Zaretskii
2018-01-10 19:44 ` Noam Postavsky
2018-01-10 20:22 ` Eli Zaretskii
2018-02-12 8:21 ` Robert Cochran
2018-02-12 17:57 ` Eli Zaretskii
2018-02-13 4:49 ` Robert Cochran
[not found] ` <87tvulmrkd.fsf@cochranmail.com>
2018-02-16 15:53 ` 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='CAM-tV-_m1WSB5=2Tc4WkJE5RT6TG5xH0w1Ue+j-J8bLgQP2zrg@mail.gmail.com' \
--to=npostavs@users.sourceforge.net \
--cc=emacs-devel@gnu.org \
--cc=robert+Emacs@cochranmail.com \
/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).