From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: defvar'ing constants Date: Tue, 28 Jun 2005 09:40:12 +0200 Message-ID: References: <87vf3zxe9g.fsf-monnier+emacs@gnu.org> Reply-To: Juanma Barranquero NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1119946890 17936 80.91.229.2 (28 Jun 2005 08:21:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2005 08:21:30 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 28 10:21:28 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DnBKn-0005iT-Lc for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2005 10:20:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DnBSa-0002Lh-Cc for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2005 04:28:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DnB1z-0005YG-Qn for emacs-devel@gnu.org; Tue, 28 Jun 2005 04:01:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DnB1w-0005XU-Qq for emacs-devel@gnu.org; Tue, 28 Jun 2005 04:01:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DnB1m-0004pH-W6 for emacs-devel@gnu.org; Tue, 28 Jun 2005 04:01:07 -0400 Original-Received: from [64.233.182.207] (helo=nproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DnAlz-0001ou-Oo for emacs-devel@gnu.org; Tue, 28 Jun 2005 03:44:47 -0400 Original-Received: by nproxy.gmail.com with SMTP id i2so199933nfe for ; Tue, 28 Jun 2005 00:40:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DroyxELnZ7AIsYs8Cem8EourckKJocNQBtmb9XLLQQ+DEnR7AybPY/AnHNDNqJtdrcHN4kg1bQvQHoloFbfa7lA5rNMRtl2StmaFZhJAwJfB9okwZgeOlht9NSw+b3hsFHf/1uhDpinPHS3qqreVoB3gc12vZmGaH7Wj+obpi5A= Original-Received: by 10.48.250.12 with SMTP id x12mr136031nfh; Tue, 28 Jun 2005 00:40:12 -0700 (PDT) Original-Received: by 10.48.250.5 with HTTP; Tue, 28 Jun 2005 00:40:12 -0700 (PDT) Original-To: Stefan Monnier In-Reply-To: <87vf3zxe9g.fsf-monnier+emacs@gnu.org> Content-Disposition: inline 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:39766 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39766 On 6/28/05, Stefan Monnier wrote: > > For consistency: > > (defvar CONSTANT) ; should work > > (defvar CONSTANT ITS-VALUE) ; should work > > (defvar CONSTANT OTHER-VALUE) ; should fail > One case I know was consciously make to work is (defvar :foo :foo) so tha= t > packages using :foo could be kept backward compatible with Emacs-19 > where :foo is a normal variable because keywords don't exist. Aha, that's why set-default and friends go around a few hoops to allow setting a keyword to itself. Thanks! Anyway, that was allowed in my original patch (it's the second case shown above) but I removed it per Richard's request. I can re-add it if deemed appropriate. > Whether we should still cater to such thing is another question. No idea whether it will be usual for people with Emacs 22.X to load 19.X packages :) --=20 /L/e/k/t/u