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: Additional safe-local-variables (was: turn off safe-local-variable-values checking) Date: Thu, 06 Apr 2006 13:51:20 -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 1144345916 3426 80.91.229.2 (6 Apr 2006 17:51:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Apr 2006 17:51:56 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 06 19:51:53 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 1FRYdo-00018e-Qj for ged-emacs-devel@m.gmane.org; Thu, 06 Apr 2006 19:51:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FRYdo-0004Uf-EC for ged-emacs-devel@m.gmane.org; Thu, 06 Apr 2006 13:51:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FRYdd-0004UK-Se for emacs-devel@gnu.org; Thu, 06 Apr 2006 13:51:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FRYdd-0004Tw-Er for emacs-devel@gnu.org; Thu, 06 Apr 2006 13:51:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FRYdd-0004Tt-8G for emacs-devel@gnu.org; Thu, 06 Apr 2006 13:51:21 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FRYhP-00076D-UW for emacs-devel@gnu.org; Thu, 06 Apr 2006 13:55:16 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1FRYdc-0003BS-Cp; Thu, 06 Apr 2006 13:51:20 -0400 Original-To: Reiner Steib In-reply-to: (message from Reiner Steib on Thu, 06 Apr 2006 17:40:23 +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:52479 Archived-At: Maybe it would make sense to introduce `string-or-null-p' to avoid using (lambda (a) (or (stringp a) (null a))) in the autoloads. Please do. BTW, wouldn't it be possible to integrate the safe-local-variable properties into defcustom? Yes, I think we should. We can have a keyword :safe whose value can be either t (all values permitted by the custom type are safe) or a predicate. When it is t, I think Emacs should really check that the local value fits the custom type. However, one inconvenience in using this is that safety specified in this way will only work once the defcustom is loaded. For minor modes, we will still need to do it differently (such as with a `put' call in an autoload cookie).