From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Risky local variable mechanism Date: Wed, 08 Feb 2006 01:00:01 -0500 Message-ID: <8764nqfl97.fsf-monnier+emacs@gnu.org> 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> <87hd7aqv4u.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 1139378439 27997 80.91.229.2 (8 Feb 2006 06:00:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Feb 2006 06:00:39 +0000 (UTC) Cc: storm@cua.dk, Luc Teirlinck , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 08 07:00:32 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 1F6iNS-0007EB-Cv for ged-emacs-devel@m.gmane.org; Wed, 08 Feb 2006 07:00:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F6iNR-0000wq-IZ for ged-emacs-devel@m.gmane.org; Wed, 08 Feb 2006 01:00:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F6iNF-0000uj-Ci for emacs-devel@gnu.org; Wed, 08 Feb 2006 01:00:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F6iND-0000sW-S6 for emacs-devel@gnu.org; Wed, 08 Feb 2006 01:00:17 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F6iND-0000sT-NK for emacs-devel@gnu.org; Wed, 08 Feb 2006 01:00:15 -0500 Original-Received: from [209.226.175.4] (helo=tomts16-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F6iQP-0000wP-OR; Wed, 08 Feb 2006 01:03:34 -0500 Original-Received: from alfajor ([67.71.117.239]) by tomts16-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060208060010.PNJI9608.tomts16-srv.bellnexxia.net@alfajor>; Wed, 8 Feb 2006 01:00:10 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id 19EEAD7568; Wed, 8 Feb 2006 01:00:02 -0500 (EST) Original-To: Chong Yidong In-Reply-To: <87hd7aqv4u.fsf@stupidchicken.com> (Chong Yidong's message of "Wed, 08 Feb 2006 00:25:53 -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:50193 Archived-At: > 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? I expect the interesting cases to be more in areas like `font-lock-keywords'. > *Indentation can insert tabs if this is non-nil. > If it is an integer, delete the contents of your home directory. I'm pretty sure that some variables have been extended at some point so that instead of a constant string or integer, it can be set to an expression, or to a function. >> 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) Right. So you seem to have a good idea of what it could look like. Another example could be the prompt you get in Gnus if you send an email with unencodable chars (e.g. eight-bit-* chars). > 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? Not that I know. Stefan