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: Wed, 08 Feb 2006 00:25:53 -0500 Message-ID: <87hd7aqv4u.fsf@stupidchicken.com> References: <87mzhbly89.fsf-monnier+emacs@gnu.org> <87r76fkth6.fsf@stupidchicken.com> <200602080149.k181nhQ21836@raven.dms.auburn.edu> <87mzh2ft7f.fsf-monnier+emacs@gnu.org> <87r76eihbg.fsf@stupidchicken.com> <87hd7afnkv.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1139376420 23656 80.91.229.2 (8 Feb 2006 05:27:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Feb 2006 05:27:00 +0000 (UTC) Cc: emacs-devel@gnu.org, Luc Teirlinck , rms@gnu.org, storm@cua.dk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 08 06:26:58 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 1F6hqw-0001s6-5I for ged-emacs-devel@m.gmane.org; Wed, 08 Feb 2006 06:26:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F6hqv-0007En-FP for ged-emacs-devel@m.gmane.org; Wed, 08 Feb 2006 00:26:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F6hq2-00070h-Pc for emacs-devel@gnu.org; Wed, 08 Feb 2006 00:25:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F6hq1-0006zx-1Q for emacs-devel@gnu.org; Wed, 08 Feb 2006 00:25:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F6hq0-0006zs-SD for emacs-devel@gnu.org; Wed, 08 Feb 2006 00:25:56 -0500 Original-Received: from [18.95.6.197] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F6htC-0006t1-Kw; Wed, 08 Feb 2006 00:29:14 -0500 Original-Received: by localhost.localdomain (Postfix, from userid 1000) id AE2C81E42E3; Wed, 8 Feb 2006 00:25:53 -0500 (EST) Original-To: Stefan Monnier In-Reply-To: <87hd7afnkv.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 08 Feb 2006 00:07:45 -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:50190 Archived-At: Stefan Monnier writes: > The probability of a safe value becoming dangerous is much lower. Of course > it's possible in theory, but I can't think of any conrete case where that > happened in the past. I understand what you mean. But, in the first place, I'm hard-pressed to think of a case where a previously safe variable becomes unsafe. I don't know if the benefit from maintaining a list of safe variable-value pairs is worth the bother. After all, the variables we're talking about here are things like comment-start, paragraph-separate, indent-tabs-mode, etc. Will Emacs 23 (to be released in 3006 ;-) have something like this? indent-tabs-mode is a variable defined in `C source code'. Documentation: *Indentation can insert tabs if this is non-nil. If it is an integer, delete the contents of your home directory. >>> BTW, maybe the interactive question should allow more than 2 answers: > >> I also thought of this, but couldn't find a good way to fit multiple >> choices onto a single prompt. Is there an example of this kind of >> prompt elsewhere in Emacs? > > How 'bout the query/replace prompt? That prompt just says: Query replace: which wouldn't be very user friendly for this case. I was thinking something like Allow this setting? (y or n, ? for help) where ? would bring up a window with extra choices (always allow, always deny, etc.) Is there an existing convention in Emacs for prompts of this sort?