From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: Instead of `risky-local-variable' Date: Wed, 01 Feb 2006 23:14:58 -0500 Message-ID: References: <200602010027.k110RHJ14939@raven.dms.auburn.edu> <87d5i7x0bn.fsf@stupidchicken.com> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1138853857 2919 80.91.229.2 (2 Feb 2006 04:17:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Feb 2006 04:17:37 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 02 05:17:35 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 1F4VuT-0007ez-Nn for ged-emacs-devel@m.gmane.org; Thu, 02 Feb 2006 05:17:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F4VxZ-0006Ga-1P for ged-emacs-devel@m.gmane.org; Wed, 01 Feb 2006 23:20:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F4Vw9-0005om-JP for emacs-devel@gnu.org; Wed, 01 Feb 2006 23:19:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F4Vw8-0005o3-JH for emacs-devel@gnu.org; Wed, 01 Feb 2006 23:19:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F4Vw8-0005ny-Ap for emacs-devel@gnu.org; Wed, 01 Feb 2006 23:19:12 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F4Vuu-0003FC-4B for emacs-devel@gnu.org; Wed, 01 Feb 2006 23:17:56 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1F4Vs2-0005HQ-1z; Wed, 01 Feb 2006 23:14:58 -0500 Original-To: Chong Yidong In-reply-to: <87d5i7x0bn.fsf@stupidchicken.com> (message from Chong Yidong on Tue, 31 Jan 2006 21:46:52 -0500) 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:49901 Archived-At: > I'm considering a more reliable replacement for the > `risky-local-variable' mechanism. My idea is that only defcustom'ed > variables could be specified in a local variables list, and that the > :type together with the specified value would determine whether a > variable is safe. This won't work for defcustoms that haven't been loaded yet. It would probably refuse to bind the variable in such a case, but is that really a problem in practice? A file local binding is useful because the variable is going to do something, which means the package that obeys it needs to be loaded.