unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Setting risky-local-variable
Date: Fri, 27 May 2005 10:20:30 -0400	[thread overview]
Message-ID: <E1DbfhO-0004a3-6D@fencepost.gnu.org> (raw)
In-Reply-To: <f7ccd24b05052608147df33d29@mail.gmail.com> (message from Juanma Barranquero on Thu, 26 May 2005 17:14:01 +0200)

    What is the recommended way to set 'risky-local-variable for a Lisp
    variable defined in C code?

      extern Qrisky_local_variable;
      Fput(Vmy_var, Qrisky_local_variable, Qt);

    or an autoload

      ;;;###autoload (put 'my_var 'risky-local-variable t)

I think the former is cleaner, but the latter is also ok
if it is more convenient.

Also put a comment about this near where the C code defines the
variable.

  reply	other threads:[~2005-05-27 14:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-26 15:14 Setting risky-local-variable Juanma Barranquero
2005-05-27 14:20 ` Richard Stallman [this message]
2005-05-27 23:30   ` Juanma Barranquero
2005-05-28 11:52     ` Richard 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=E1DbfhO-0004a3-6D@fencepost.gnu.org \
    --to=rms@gnu.org \
    --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).