From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: safe-local-variable additions (was: Risky local variable mechanism) Date: Thu, 16 Feb 2006 15:02:10 +0100 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: <87mzhbly89.fsf-monnier+emacs@gnu.org> <874q32lo6h.fsf@stupidchicken.com> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1140117194 7683 80.91.229.2 (16 Feb 2006 19:13:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Feb 2006 19:13:14 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 16 20:13:10 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 1F9oYn-0006By-Br for ged-emacs-devel@m.gmane.org; Thu, 16 Feb 2006 20:13:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F9oUu-0004gF-6o for ged-emacs-devel@m.gmane.org; Thu, 16 Feb 2006 14:09:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F9k6M-0003We-CT for emacs-devel@gnu.org; Thu, 16 Feb 2006 09:27:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F9k6K-0003Vo-Iq for emacs-devel@gnu.org; Thu, 16 Feb 2006 09:27:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F9jio-00057F-Hs for emacs-devel@gnu.org; Thu, 16 Feb 2006 09:03:07 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1F9jnw-0008Pw-SU for emacs-devel@gnu.org; Thu, 16 Feb 2006 09:08:21 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1F9jib-0001BT-DD for emacs-devel@gnu.org; Thu, 16 Feb 2006 15:02:49 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Feb 2006 15:02:49 +0100 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Feb 2006 15:02:49 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-To: emacs-devel@gnu.org Original-Lines: 47 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: .*T0'iU(sujq_j9\J>-d4fg; N/1++U#U$_5ii6k.=|"-n'?5O:Hyz&wi'-!I~,}7~GgT=0S /&-R5sbkNy5+Xo1y{Tw2KKxi@Xh"g@]Qc|.U<*]WDd)qvGowFDvfU1F]{EDho:7P0@|oOD=Bc{K4?> WP68K[Mx:}=`ZT'6g4'f+g?;`vri2!)xGy}3:=l'(/Cea0l4lo^H5#@/Z3ev Mail-Copies-To: nobody User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:WdfqOX6W4H2bp5hGGu/E0Smn3E4= 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:50625 Archived-At: On Tue, Feb 14 2006, Chong Yidong wrote: > I've installed the patch changing the way file local variables are > handled. Please see if there are any problems. > > If you encounter any file variables that should be marked safe, so > that Emacs in its default configuration doesn't bother you before > setting it, go ahead and add an appropriate `safe-local-variable' > property. `truncate-lines' could be added. Any objection against adding it? Is adding it to the "Commonly-encountered local variables that are safe:" expression in `files.el' the right way to do this? --8<---------------cut here---------------start------------->8--- --- files.el 15 Feb 2006 16:04:59 +0100 1.811 +++ files.el 15 Feb 2006 16:38:42 +0100 @@ -2563,6 +2563,7 @@ (sentence-end . ,string-or-null) (sentence-end-double-space . t) (tab-width . integerp) + (truncate-lines . t) (version-control . t))))) (defun safe-local-variable-p (sym val) --8<---------------cut here---------------end--------------->8--- `ispell-check-comments' and `ispell-local-dictionary' should also be added, IMHO. Is it better to put them in `files.el' or add it to `ispell.el' right after the corresponding `defcustom'? --8<---------------cut here---------------start------------->8--- (put 'ispell-check-comments 'safe-local-variable (lambda (a) (or (null a) (eq t a) (eq 'exclusive a)))) (put 'ispell-local-dictionary 'safe-local-variable (lambda (a) (or (stringp a) (null a)))) --8<---------------cut here---------------end--------------->8--- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/