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: turn off safe-local-variable-values checking Date: Wed, 05 Apr 2006 21:11:39 -0400 Message-ID: References: <9508491d0603300327i6da294bcp553f2f48df85d65f@mail.gmail.com> <8764lue3jv.fsf-monnier+emacs@gnu.org> <9508491d0604021712r78136dco5e33b05a3d39109b@mail.gmail.com> <87y7ynjt1y.fsf-monnier+emacs@gnu.org> <87odzhhxxo.fsf-monnier+emacs@gnu.org> <87slosgov3.fsf-monnier+emacs@gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1144285924 5193 80.91.229.2 (6 Apr 2006 01:12:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Apr 2006 01:12:04 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 06 03:12:00 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FRJ2R-0006bk-6K for ged-emacs-devel@m.gmane.org; Thu, 06 Apr 2006 03:11:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FRJ2Q-0002ls-Kr for ged-emacs-devel@m.gmane.org; Wed, 05 Apr 2006 21:11:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FRJ2D-0002ki-Bs for emacs-devel@gnu.org; Wed, 05 Apr 2006 21:11:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FRJ2C-0002k4-J3 for emacs-devel@gnu.org; Wed, 05 Apr 2006 21:11:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FRJ2C-0002jr-DQ for emacs-devel@gnu.org; Wed, 05 Apr 2006 21:11:40 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FRJ5p-0006Q6-JW for emacs-devel@gnu.org; Wed, 05 Apr 2006 21:15:25 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1FRJ2B-0000Da-Qq; Wed, 05 Apr 2006 21:11:39 -0400 Original-To: Stefan Monnier In-reply-to: <87slosgov3.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Wed, 05 Apr 2006 09:01:00 -0400) 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:52462 Archived-At: > ;; For variables defined by minor modes, put the safety declarations > ;; here, not in the file defining the minor mode (when Emacs visits a > ;; file specifying that local variable, the minor mode file may not be > ;; loaded yet). For variables defined by major modes, the safety > ;; declarations can go into the major mode's file, since that will be > ;; loaded before file variables are processed. Interesting. I'd have to disagree: put it/them in the minor mode's file, but with an ;;;###autoload cookie. That seems like a good method to achieve the goal (which is that the property should always be there). Would you please edit the comment? I think it's important to put those safe-local-variable properties at the same spot as where the variable is declared. I agree, that will be better for maintenance, in case a change in the meaning of the variable calls for a change in the property.