unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
Cc: emacs-devel@gnu.org
Subject: Re: Instead of `risky-local-variable'
Date: Wed, 01 Feb 2006 23:47:44 -0500	[thread overview]
Message-ID: <87y80uqscv.fsf@stupidchicken.com> (raw)
In-Reply-To: <E1F4Vs2-0005HQ-1z@fencepost.gnu.org> (Richard M. Stallman's message of "Wed, 01 Feb 2006 23:14:58 -0500")

"Richard M. Stallman" <rms@gnu.org> writes:

>     > I'm considering a more reliable replacement for the
>     > `risky-local-variable' mechanism.  My idea is that only defcustom'ed
>     > variables could be specified in a local variables list, and that the
>     > :type together with the specified value would determine whether a
>     > variable is safe.
>
>     This won't work for defcustoms that haven't been loaded yet.
>
> It would probably refuse to bind the variable in such a case, but is
> that really a problem in practice?  A file local binding is useful
> because the variable is going to do something, which means the package
> that obeys it needs to be loaded.

It might be a problem for variables associated with minor modes that
the user may only turn on after visiting the file.

  reply	other threads:[~2006-02-02  4:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-24 16:47 Instead of `risky-local-variable' Richard M. Stallman
2006-02-01  0:27 ` Luc Teirlinck
2006-02-01  2:46   ` Chong Yidong
2006-02-02  4:14     ` Richard M. Stallman
2006-02-02  4:47       ` Chong Yidong [this message]
2006-02-01 11:03   ` Kim F. Storm
2006-02-02  4:16   ` Richard M. Stallman

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=87y80uqscv.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    /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).