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: risky local variable mechanism Date: Mon, 13 Feb 2006 15:05:13 -0500 Message-ID: References: <200602101313.13663.jyavner@member.fsf.org> <87accxlt6z.fsf@stupidchicken.com> <200602111527.31031.jyavner@member.fsf.org> <87hd757he0.fsf@stupidchicken.com> <87vevkmk1e.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 1139861196 20317 80.91.229.2 (13 Feb 2006 20:06:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Feb 2006 20:06:36 +0000 (UTC) Cc: jyavner@member.fsf.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 13 21:06: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 1F8jxW-0002av-OI for ged-emacs-devel@m.gmane.org; Mon, 13 Feb 2006 21:06:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F8jxW-00009I-67 for ged-emacs-devel@m.gmane.org; Mon, 13 Feb 2006 15:06:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F8jwl-0008D4-51 for emacs-devel@gnu.org; Mon, 13 Feb 2006 15:05:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F8jwk-0008C8-FN for emacs-devel@gnu.org; Mon, 13 Feb 2006 15:05:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F8jwk-0008Bl-67 for emacs-devel@gnu.org; Mon, 13 Feb 2006 15:05:18 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F8k1C-0003tQ-Qv; Mon, 13 Feb 2006 15:09:54 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1F8jwf-0007v1-FR; Mon, 13 Feb 2006 15:05:13 -0500 Original-To: Chong Yidong In-reply-to: <87vevkmk1e.fsf@stupidchicken.com> (message from Chong Yidong on Sun, 12 Feb 2006 14:52:45 -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:50481 Archived-At: The relevant part is the function `unsafep-variable', which can be adapted easily. The other things that unsafep.el checks are not related to file variables. That seems wrong, because it refers to `val' which does not exist in the function unsafep-variable. However, beyond that, it is not clearly right for unsafep to reject binding all variables that would be rejected in a local variables list, given that unsafep can detect giving functions as values.