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: defvar vs setqif.. Date: 21 May 2002 08:15:50 +0900 Sender: emacs-devel-admin@gnu.org Message-ID: <87bsbaif6h.fsf@tc-1-100.kawasaki.gol.ne.jp> References: <87hel3sn2d.fsf@tc-1-100.kawasaki.gol.ne.jp> Reply-To: Miles Bader NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1021937945 11969 127.0.0.1 (20 May 2002 23:39:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 20 May 2002 23:39:05 +0000 (UTC) Cc: 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 179wk5-00036w-00 for ; Tue, 21 May 2002 01:39:05 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 179wyF-0004Db-00 for ; Tue, 21 May 2002 01:53:43 +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 179wkQ-0002D1-00; Mon, 20 May 2002 19:39:26 -0400 Original-Received: from smtp02.fields.gol.com ([203.216.5.132]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 179wiv-00024r-00; Mon, 20 May 2002 19:37:53 -0400 Original-Received: from tc-2-204.kawasaki.gol.ne.jp ([203.216.25.204] helo=tc-1-100.kawasaki.gol.ne.jp) by smtp02.fields.gol.com with esmtp (Magnetic Fields) id 179wit-00069C-00; Tue, 21 May 2002 08:37:51 +0900 Original-Received: by tc-1-100.kawasaki.gol.ne.jp (Postfix, from userid 1000) id DFC8830B3; Tue, 21 May 2002 08:15:50 +0900 (JST) Original-To: "D. Goel" System-Type: i686-pc-linux-gnu In-Reply-To: Original-Lines: 17 X-Abuse-Complaints: abuse@gol.com 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:4224 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4224 "D. Goel" writes: > > > So i was wondering is a special-form like 'setqif' could be > > > > That name would be wrong, because the usage of defvar you're > > complaining about doesn't set the variable at all. > > but that's why i had an 'if' at the end.. to suggest that setq only if > not already defined.. else don't setq.. I guess this is already resolved, but just to make sure things are clear, `defvar' without an initializer _never_ binds or sets the variable. In fact it shouldn't affect the variable at all, only meta-information about the variable. -Miles -- Quidquid latine dictum sit, altum viditur.