From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Building Emacs overflowed pure space Date: Thu, 20 Jul 2006 00:05:03 -0400 Message-ID: References: <7dbe73ed0607180138x35e9d9bft3e42f20cb369795c@mail.gmail.com> <200607181929.k6IJTZN9028639@jane.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1153368321 20772 80.91.229.2 (20 Jul 2006 04:05:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Jul 2006 04:05:21 +0000 (UTC) Cc: Luc Teirlinck , rms@gnu.org, ralphm@members.fsf.org, emacs-devel@gnu.org, YAMAMOTO Mitsuharu , mathias.dahl@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 20 06:05:18 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G3Pml-0001hS-GL for ged-emacs-devel@m.gmane.org; Thu, 20 Jul 2006 06:05:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G3Pml-0003NJ-5p for ged-emacs-devel@m.gmane.org; Thu, 20 Jul 2006 00:05:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G3PmY-0003N6-5H for emacs-devel@gnu.org; Thu, 20 Jul 2006 00:05:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G3PmV-0003Mo-IT for emacs-devel@gnu.org; Thu, 20 Jul 2006 00:05:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G3PmV-0003Ml-BN for emacs-devel@gnu.org; Thu, 20 Jul 2006 00:04:59 -0400 Original-Received: from [209.226.175.93] (helo=tomts36-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G3PmY-0002y5-Nv; Thu, 20 Jul 2006 00:05:02 -0400 Original-Received: from localhost ([70.53.192.251]) by tomts36-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060720040455.JPFR13653.tomts36-srv.bellnexxia.net@localhost>; Thu, 20 Jul 2006 00:04:55 -0400 Original-Received: by localhost (Postfix, from userid 20848) id E95F590A6; Thu, 20 Jul 2006 00:05:03 -0400 (EDT) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Thu, 20 Jul 2006 01:13:51 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:57364 Archived-At: >>> Is it OK to place `(setq ...)' after `,@body' as in the CL-version? >> The setq can be placed after, but the cdr can't, in case the `body' does >> a setcdr on it. > Really? > I thought the whole point of using make-symbol was to create an > anonymous loop-var to prevent BODY from accessing/modifying the list. Indeed. That's why the setq can be moved. But the `cdr' is applied to a cons-cell, not to the anonymous variable, and the cons-cell is not anonymous. > Besides, if the CL version is correct, why cannot the subr version of > dolist do the same? Then maybe it can. I was just pointing out that it can change the behavior in the case where the loop body changes the list destructively as it goes through it. Stefan