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: Risky local variable mechanism Date: Tue, 31 Jan 2006 21:30:50 -0500 Message-ID: <873bj3x12d.fsf@stupidchicken.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138761082 25587 80.91.229.2 (1 Feb 2006 02:31:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Feb 2006 02:31:22 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 01 03:31:15 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 1F47m3-0008IF-Jg for ged-emacs-devel@m.gmane.org; Wed, 01 Feb 2006 03:31:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F47p5-0007mq-Md for ged-emacs-devel@m.gmane.org; Tue, 31 Jan 2006 21:34:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F47ou-0007ml-HJ for emacs-devel@gnu.org; Tue, 31 Jan 2006 21:34:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F47ot-0007mZ-2b for emacs-devel@gnu.org; Tue, 31 Jan 2006 21:34:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F47os-0007mW-Vu for emacs-devel@gnu.org; Tue, 31 Jan 2006 21:34:07 -0500 Original-Received: from [18.95.6.38] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F47nM-0004Uc-T8; Tue, 31 Jan 2006 21:32:32 -0500 Original-Received: by localhost.localdomain (Postfix, from userid 1000) id 14C141E4244; Tue, 31 Jan 2006 21:30:50 -0500 (EST) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Tue, 31 Jan 2006 18:09:31 -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:49858 Archived-At: "Richard M. Stallman" writes: > A few days ago I sent a message about possibly replacing the risky > local variable mechanism with something safer. Nobody has responded > yet. This problem is important; please help me think about the issue. If you want to be really restrictive, you can introduce a list of `safe-local-variables', and prompt for anything outside that list (the prompt could have an additional choice, [(a) always allow this variable], a variable to the list). Setting `enable-local-variables' to (e.g.) 'unless-risky could bring back the old behavior, i.e., allowing everything except those marked as risky. It seems like people only actually use a handful of file variables, anyway. From looking at the source trees of Emacs and some other projects, the file local variables in use are: allout-layout byte-compile-dynamic byte-compile-warnings c-basic-offset c-indent-level coding compile-command fill-column fill-prefix indent-tabs-mode kept-new-versions make-backup-files mode outline-layout page-delimiter paragraph-separate sentence-end sentence-end-double-space sgml-omittag sgml-shorttag sgml-minimize-attributes sgml-always-quote-attributes sgml-indent-step sgml-indent-data sgml-parent-document sgml-exposed-tags sgml-local-catalogs sgml-local-ecat-files tab-width time-stamp-end time-stamp-format time-stamp-start trim-versions-without-asking version-control