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: 20 May 2002 09:03:06 +0900 Sender: emacs-devel-admin@gnu.org Message-ID: <87hel3sn2d.fsf@tc-1-100.kawasaki.gol.ne.jp> References: 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 1021853151 11696 127.0.0.1 (20 May 2002 00:05:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 20 May 2002 00:05:51 +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 179agR-00032X-00 for ; Mon, 20 May 2002 02:05:51 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 179au8-0006Dj-00 for ; Mon, 20 May 2002 02:20:00 +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 179agl-000718-00; Sun, 19 May 2002 20:06:11 -0400 Original-Received: from smtp02.fields.gol.com ([203.216.5.132]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 179aeM-0006ve-00; Sun, 19 May 2002 20:03:43 -0400 Original-Received: from tc-2-210.kawasaki.gol.ne.jp ([203.216.25.210] helo=tc-1-100.kawasaki.gol.ne.jp) by smtp02.fields.gol.com with esmtp (Magnetic Fields) id 179aeK-0000We-00; Mon, 20 May 2002 09:03:41 +0900 Original-Received: by tc-1-100.kawasaki.gol.ne.jp (Postfix, from userid 1000) id 0E2F530B3; Mon, 20 May 2002 09:03:06 +0900 (JST) Original-To: "D. Goel" System-Type: i686-pc-linux-gnu In-Reply-To: Original-Lines: 23 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:4149 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4149 "D. Goel" writes: > If there was a special-form that did exactly what defvar does, hopefully > people would stop using defvar when they didn't mean to... The way they're using defvar is correct. It would be much better to fix the definition-finding functions to prefer defvars that initialize the variable over those that don't, since the `real' definition almost always initializes the value (and should). > So i was wondering is a special-form like 'setqif' could be provided > whose only difference from 'defvar' is in a name... That name would be wrong, because the usage of defvar you're complaining about doesn't set the variable at all. In any case, we should just make defvar work correctly. -Miles -- `...the Soviet Union was sliding in to an economic collapse so comprehensive that in the end its factories produced not goods but bads: finished products less valuable than the raw materials they were made from.' [The Economist]