From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lawrence Mitchell Newsgroups: gmane.emacs.bugs Subject: bug#6583: 23.2; cl loop macro with `and' clause Date: Thu, 08 Jul 2010 09:28:35 +0100 Message-ID: References: <871vbedfzq.fsf@blah.blah> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1278579615 11949 80.91.229.12 (8 Jul 2010 09:00:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 8 Jul 2010 09:00:15 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 08 11:00:13 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OWmxm-00080i-8f for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Jul 2010 11:00:10 +0200 Original-Received: from localhost ([127.0.0.1]:55279 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWmxl-0006bg-A5 for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Jul 2010 05:00:09 -0400 Original-Received: from [140.186.70.92] (port=36612 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWmxa-0006ZW-Ex for bug-gnu-emacs@gnu.org; Thu, 08 Jul 2010 05:00:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWmxX-0004bT-Gc for bug-gnu-emacs@gnu.org; Thu, 08 Jul 2010 04:59:58 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41144) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWmxX-0004b3-E4 for bug-gnu-emacs@gnu.org; Thu, 08 Jul 2010 04:59:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OWmXW-0005MQ-BY; Thu, 08 Jul 2010 04:33:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <871vbedfzq.fsf@blah.blah> Resent-From: Lawrence Mitchell Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Jul 2010 08:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6583 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.127857793720598 (code B ref -1); Thu, 08 Jul 2010 08:33:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Jul 2010 08:32:17 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWmWn-0005MB-1N for submit@debbugs.gnu.org; Thu, 08 Jul 2010 04:32:17 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWmWk-0005M6-R7 for submit@debbugs.gnu.org; Thu, 08 Jul 2010 04:32:15 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:49566) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OWmWh-00085l-VN for submit@debbugs.gnu.org; Thu, 08 Jul 2010 04:32:12 -0400 Original-Received: from [140.186.70.92] (port=45643 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWmWg-0002E7-Oj for bug-gnu-emacs@gnu.org; Thu, 08 Jul 2010 04:32:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWmWf-0007bW-7E for bug-gnu-emacs@gnu.org; Thu, 08 Jul 2010 04:32:10 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:45418) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWmWe-0007bL-UL for bug-gnu-emacs@gnu.org; Thu, 08 Jul 2010 04:32:09 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OWmWZ-0004Yj-NE for bug-gnu-emacs@gnu.org; Thu, 08 Jul 2010 10:32:03 +0200 Original-Received: from garnet.epcc.ed.ac.uk ([129.215.56.222]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jul 2010 10:32:03 +0200 Original-Received: from wence by garnet.epcc.ed.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jul 2010 10:32:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: garnet.epcc.ed.ac.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (usg-unix-v) Cancel-Lock: sha1:K4X6v13FTlWrYMPiRFyVqCkw7Ew= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 08 Jul 2010 04:33:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38298 Archived-At: Kevin Ryde wrote: [...] > I struck this when making a loop over an alist where I thought to take > apart the key and value with an `and' as they didn't need to be > sequential, > (loop for elem in my-alist > for k = (car elem) and v = (cdr elem) > do > ... Note the idiomatic way of writing this loop: (loop for (k . v) in my-alist do ...) Although this does not address the question of the bug. -- Lawrence Mitchell