From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Instead of `risky-local-variable' Date: Wed, 01 Feb 2006 23:47:44 -0500 Message-ID: <87y80uqscv.fsf@stupidchicken.com> References: <200602010027.k110RHJ14939@raven.dms.auburn.edu> <87d5i7x0bn.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138855708 16111 80.91.229.2 (2 Feb 2006 04:48:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Feb 2006 04:48:28 +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:48:26 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 1F4WOK-0005ut-FV for ged-emacs-devel@m.gmane.org; Thu, 02 Feb 2006 05:48:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F4WRQ-0006n1-0o for ged-emacs-devel@m.gmane.org; Wed, 01 Feb 2006 23:51:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F4WRD-0006mh-3u for emacs-devel@gnu.org; Wed, 01 Feb 2006 23:51:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F4WRB-0006mL-GS for emacs-devel@gnu.org; Wed, 01 Feb 2006 23:51:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F4WRB-0006m9-BY for emacs-devel@gnu.org; Wed, 01 Feb 2006 23:51:17 -0500 Original-Received: from [18.95.6.38] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F4WPu-0007cH-00; Wed, 01 Feb 2006 23:49:58 -0500 Original-Received: by localhost.localdomain (Postfix, from userid 1000) id 3E6741E41D4; Wed, 1 Feb 2006 23:47:45 -0500 (EST) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Wed, 01 Feb 2006 23:14:58 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:49913 Archived-At: "Richard M. Stallman" writes: > > 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. It might be a problem for variables associated with minor modes that the user may only turn on after visiting the file.