From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Brinkhoff Newsgroups: gmane.emacs.devel Subject: Re: edebug specs for cl-loop Date: Wed, 08 Aug 2012 14:00:51 +0200 Organization: nocrew Message-ID: <85vcgtioek.fsf@junk.nocrew.org> References: <87pq77ges6.fsf@gmail.com> <87txwf9tmy.fsf@gmail.com> <87pq739ona.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1344427282 21671 80.91.229.3 (8 Aug 2012 12:01:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Aug 2012 12:01:22 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 08 14:01:23 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sz4wy-0003zY-8r for ged-emacs-devel@m.gmane.org; Wed, 08 Aug 2012 14:01:20 +0200 Original-Received: from localhost ([::1]:36740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sz4wx-0003Kj-CJ for ged-emacs-devel@m.gmane.org; Wed, 08 Aug 2012 08:01:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sz4wq-0003KW-RN for emacs-devel@gnu.org; Wed, 08 Aug 2012 08:01:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sz4wp-0002LJ-3i for emacs-devel@gnu.org; Wed, 08 Aug 2012 08:01:12 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:60414) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sz4wo-0002LD-TA for emacs-devel@gnu.org; Wed, 08 Aug 2012 08:01:11 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Sz4wl-0003cz-Vz for emacs-devel@gnu.org; Wed, 08 Aug 2012 14:01:07 +0200 Original-Received: from c-1756e555.012-14-67626717.cust.bredbandsbolaget.se ([85.229.86.23]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Aug 2012 14:01:07 +0200 Original-Received: from lars by c-1756e555.012-14-67626717.cust.bredbandsbolaget.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Aug 2012 14:01:07 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-1756e555.012-14-67626717.cust.bredbandsbolaget.se User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:MNK6uUdl4fjGMa3FoSVVLcecSwA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:152332 Archived-At: Thierry Volpiatto writes: > loop understand this but not edebug: (Note where the for rand2 line is now) > > for alphaindex = (random* (length alph)) > collect rand1 into ls > for rand2 = (aref alph alphaindex) > collect rand2 into ls > > loop understand this but not edebug: (note where the while line is now) > > with len = (length (window-list)) > for count from 1 > while (< count len) > for w1 = (iter-next wlist) > for b1 = (window-buffer w1) > for s1 = (window-start w1) > for w2 = (iter-next wlist) > for b2 = (window-buffer w2) > for s2 = (window-start w2) Note that mixing different kinds of loop clauses like this is actually not permitted by the Common Lisp specification. Some implementations signal errors for this (I checked three, they all complained). (Just FYI, since we're not discussing a scrict CL implementation.)