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:48:20 -0500 Message-ID: <87k6c6e4cm.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> <200602080548.k185m9424791@raven.dms.auburn.edu> <87zml2e6eb.fsf-monnier+emacs@gnu.org> <200602080617.k186H2q25070@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1139381338 1873 80.91.229.2 (8 Feb 2006 06:48:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Feb 2006 06:48:58 +0000 (UTC) Cc: cyd@stupidchicken.com, storm@cua.dk, 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:48:49 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 1F6j8B-0005yq-CH for ged-emacs-devel@m.gmane.org; Wed, 08 Feb 2006 07:48:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F6j8A-00072o-T6 for ged-emacs-devel@m.gmane.org; Wed, 08 Feb 2006 01:48:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F6j81-00072i-Bc for emacs-devel@gnu.org; Wed, 08 Feb 2006 01:48:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F6j7z-00072W-GT for emacs-devel@gnu.org; Wed, 08 Feb 2006 01:48:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F6j7z-00072T-DT for emacs-devel@gnu.org; Wed, 08 Feb 2006 01:48:35 -0500 Original-Received: from [209.226.175.184] (helo=tomts22-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F6jBB-0004mv-38; Wed, 08 Feb 2006 01:51:53 -0500 Original-Received: from alfajor ([67.71.117.239]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060208064830.BLKX16473.tomts22-srv.bellnexxia.net@alfajor>; Wed, 8 Feb 2006 01:48:30 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id 3C41CD7568; Wed, 8 Feb 2006 01:48:20 -0500 (EST) Original-To: Luc Teirlinck In-Reply-To: <200602080617.k186H2q25070@raven.dms.auburn.edu> (Luc Teirlinck's message of "Wed, 8 Feb 2006 00:17:02 -0600 (CST)") 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:50198 Archived-At: > The automatic/interactive part of what I propose would be things that are > only set by the user, so custom could be OK for them. > So I may have misunderstood your proposal. You actually propose an > alist whose elements look like (myvar nil t), meaning that the set of > safe values of myvar is (nil t)? Yes, something like that. Except that it's the list of values that *the user* has deemed safe (there'd also be a corresponding alist of values the user has deemed undesirable). The maintainers/authors wouldn't touch this list. Instead they'd set special properties on the variable's symbol, which would either be t (to say that any value is safe) or a predicate which checks a candidate value for safety. Stefan