From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: defvaralias Date: 28 Oct 2003 11:08:01 +0900 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200310280125.h9S1PYw15256@raven.dms.auburn.edu> Reply-To: Miles Bader NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1067307094 19212 80.91.224.253 (28 Oct 2003 02:11:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2003 02:11:34 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Oct 28 03:11:30 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AEJKU-0004kY-00 for ; Tue, 28 Oct 2003 03:11:30 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AEJKU-0006W9-00 for ; Tue, 28 Oct 2003 03:11:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AEJIq-0008AQ-2j for emacs-devel@quimby.gnus.org; Mon, 27 Oct 2003 21:09:48 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AEJIQ-00086p-7J for emacs-devel@gnu.org; Mon, 27 Oct 2003 21:09:22 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AEJHt-0007fp-4b for emacs-devel@gnu.org; Mon, 27 Oct 2003 21:09:21 -0500 Original-Received: from [210.143.35.52] (helo=TYO202.gate.nec.co.jp) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AEJHM-0007OI-6H; Mon, 27 Oct 2003 21:08:16 -0500 Original-Received: from mailgate3.nec.co.jp (mailgate53.nec.co.jp [10.7.69.194]) by TYO202.gate.nec.co.jp (8.11.7/3.7W01080315) with ESMTP id h9S283l21695; Tue, 28 Oct 2003 11:08:04 +0900 (JST) Original-Received: from mailsv4.nec.co.jp (mailgate52.nec.co.jp [10.7.69.198]) by mailgate3.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC) with ESMTP id h9S283513618; Tue, 28 Oct 2003 11:08:03 +0900 (JST) Original-Received: from edtmg03.lsi.nec.co.jp ([10.26.16.203]) by mailsv4.nec.co.jp (8.11.7/3.7W-MAILSV4-NEC) with ESMTP id h9S282X02644; Tue, 28 Oct 2003 11:08:02 +0900 (JST) Original-Received: from mcsss2.ucom.lsi.nec.co.jp (localhost [127.0.0.1]) by edtmg03.lsi.nec.co.jp (8.9.3p2+3.2W/3.7W_EDC_Ver.1.0) with ESMTP id LAA09765; Tue, 28 Oct 2003 11:08:02 +0900 (JST) Original-Received: from mcspd15.ucom.lsi.nec.co.jp (mcspd15 [10.30.114.174]) by mcsss2.ucom.lsi.nec.co.jp (8.12.10/8.12.8/EDcg v2.01-mc/1046780839) with ESMTP id h9S2807Q005594; Tue, 28 Oct 2003 11:08:01 +0900 (JST) Original-Received: by mcspd15.ucom.lsi.nec.co.jp (Postfix, from userid 31295) id 7EF763722; Tue, 28 Oct 2003 11:08:01 +0900 (JST) Original-To: Luc Teirlinck System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <200310280125.h9S1PYw15256@raven.dms.auburn.edu> Original-Lines: 18 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17486 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17486 Luc Teirlinck writes: > This suggests that (defvaralias 'var nil) will make `var' cease to be > an alias if it was one and unbind var, if var was bound. Instead, var > becomes, pretty logically, an alias for `nil'. I propose to just remove > the next to last line in the doc string and could commit this change > if desired. Conceptually, `making a variable an alias for nil' seems like a confusing way of doing (defconst VAR nil); in practice, it additionally makes it impossible to set the variable (but I'm not sure this is particularly useful, compared to say, more general enforcement of defconst). Removing a variable alias _does_ seem like a useful function, so wouldn't it make more sense to make the code follow the doc-string? -Miles -- Yo mama's so fat when she gets on an elevator it HAS to go down.