From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Setting risky-local-variable Date: Fri, 27 May 2005 10:20:30 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1117204143 10285 80.91.229.2 (27 May 2005 14:29:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 May 2005 14:29:03 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 27 16:28:57 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dbfnp-0005RH-Lj for ged-emacs-devel@m.gmane.org; Fri, 27 May 2005 16:27:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dbfs7-0002xk-CI for ged-emacs-devel@m.gmane.org; Fri, 27 May 2005 10:31:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DbfoH-0001qj-Pv for emacs-devel@gnu.org; Fri, 27 May 2005 10:27:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DbfoD-0001o3-C0 for emacs-devel@gnu.org; Fri, 27 May 2005 10:27:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DbfoD-0001mj-6h for emacs-devel@gnu.org; Fri, 27 May 2005 10:27:33 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DbfjH-000275-DJ for emacs-devel@gnu.org; Fri, 27 May 2005 10:22:27 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DbfhO-0004a3-6D; Fri, 27 May 2005 10:20:34 -0400 Original-To: Juanma Barranquero In-reply-to: (message from Juanma Barranquero on Thu, 26 May 2005 17:14:01 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:37772 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37772 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.