From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: defvar vs setqif.. Date: Mon, 20 May 2002 15:24:20 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200205201924.g4KJOLh29045@rum.cs.yale.edu> References: <87hel3sn2d.fsf@tc-1-100.kawasaki.gol.ne.jp> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1021922810 17120 127.0.0.1 (20 May 2002 19:26:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 20 May 2002 19:26:50 +0000 (UTC) Cc: Miles Bader , emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 179sny-0004S1-00 for ; Mon, 20 May 2002 21:26:50 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 179t23-0006u5-00 for ; Mon, 20 May 2002 21:41:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 179soL-0003Hr-00; Mon, 20 May 2002 15:27:13 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 179sld-00039s-00; Mon, 20 May 2002 15:24:25 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g4KJOLh29045; Mon, 20 May 2002 15:24:21 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: "D. Goel" Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:4199 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4199 > how can a definition-finding function tell which of the several > defvar's it may encounter. AFAICT, there is no way for a > definition-finding function like tag-creation-function to tell which > is the 'defining' defvar and which is not... There should be only one (defvar ) form per variable. All others should only be (defvar ). Admittedly, this cannot always be done conveniently, but I don't think the problematic cases happen often, far from it. Do you have evidence otherwise ? > but that's why i had an 'if' at the end.. to suggest that setq only if > not already defined.. else don't setq.. When have you needed that ? (I mean actual concrete examples) Stefan