From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: defvaralias Date: Sat, 07 May 2005 14:35:51 -0400 Message-ID: References: <200505060142.j461gYF08458@raven.dms.auburn.edu> <17018.62209.92386.375984@farnswood.snap.net.nz> <200505061456.j46EuMh11458@raven.dms.auburn.edu> <17020.6078.335703.434592@farnswood.snap.net.nz> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1115491001 4526 80.91.229.2 (7 May 2005 18:36:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 7 May 2005 18:36:41 +0000 (UTC) Cc: teirllm@dms.auburn.edu, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 07 20:36:40 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DUUA2-00037W-IY for ged-emacs-devel@m.gmane.org; Sat, 07 May 2005 20:36:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DUUI0-0007JZ-KX for ged-emacs-devel@m.gmane.org; Sat, 07 May 2005 14:44:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DUUDD-0004y0-Ba for emacs-devel@gnu.org; Sat, 07 May 2005 14:39:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DUUD1-0004rB-NB for emacs-devel@gnu.org; Sat, 07 May 2005 14:39:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DUUD0-0004pf-Sn for emacs-devel@gnu.org; Sat, 07 May 2005 14:39:26 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DUUFn-0004xa-Fz for emacs-devel@gnu.org; Sat, 07 May 2005 14:42:19 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DUU9X-0006tj-8S; Sat, 07 May 2005 14:35:51 -0400 Original-To: Nick Roberts In-reply-to: <17020.6078.335703.434592@farnswood.snap.net.nz> (message from Nick Roberts on Sat, 7 May 2005 13:19:58 +1200) 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:36827 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36827 (defvar var2 "DOC2") (defvaralias 'var1 'var2) is doesn't give compiler warnings. Presumably defvaralias is a declaration for var1. In theory, it should warn, but I would rather put that in TODO and not change it now. Yes, you're right and I'm misquoting Stefan. There must be some symmetry, however as: (defvar var2 "DOC2") (defvaralias 'var1 'var2) That should not warn. It defines var2 once and var1 once. (defvar var1a "DOC1") (defvaralias 'var1a 'var2a) That should warn. It defines var1a twice. But this can wait till after the release.