From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: Declaring a variable safe Date: Sun, 28 Mar 2010 14:16:15 -0400 Message-ID: References: <83d3yo2uqv.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269800323 11644 80.91.229.12 (28 Mar 2010 18:18:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 28 Mar 2010 18:18:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 28 20:18:38 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nvx4G-0003UJ-Qj for ged-emacs-devel@m.gmane.org; Sun, 28 Mar 2010 20:18:37 +0200 Original-Received: from localhost ([127.0.0.1]:41694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nvx4G-0007hZ-5o for ged-emacs-devel@m.gmane.org; Sun, 28 Mar 2010 14:18:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nvx23-0006nQ-GD for emacs-devel@gnu.org; Sun, 28 Mar 2010 14:16:19 -0400 Original-Received: from [199.232.76.173] (port=49234 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nvx22-0006mw-2F for emacs-devel@gnu.org; Sun, 28 Mar 2010 14:16:18 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nvx21-00082J-Im for emacs-devel@gnu.org; Sun, 28 Mar 2010 14:16:17 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:44927) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nvx21-00082F-D2 for emacs-devel@gnu.org; Sun, 28 Mar 2010 14:16:17 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nvx1z-0006Lg-VP; Sun, 28 Mar 2010 14:16:15 -0400 X-Spook: lock picking enemy of the state espionage Rubin basement X-Ran: hh9q2XYD'0|hRg|2EW^7a;AUm?TX_35C?9Dm@Bi)\CP8 (Eli Zaretskii's message of "Sun\, 28 Mar 2010 20\:58\:48 +0300") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:122803 Archived-At: Eli Zaretskii wrote: > (put 'foobar 'safe-local-variable 'booleanp) > > But what is the recommended way of doing this with a variable that is > defined in the C sources? One possibility is to put the above form > somewhere in a Lisp file that is preloaded, like simple.el. This is currently done ~ line 2770 of files.el.