From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: edebug specs for cl-loop Date: Tue, 07 Aug 2012 08:55:53 +0200 Message-ID: <87pq739ona.fsf@gmail.com> References: <87pq77ges6.fsf@gmail.com> <87txwf9tmy.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1344322580 30084 80.91.229.3 (7 Aug 2012 06:56:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2012 06:56:20 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 07 08:56:20 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 1SydiD-0000jM-O4 for ged-emacs-devel@m.gmane.org; Tue, 07 Aug 2012 08:56:17 +0200 Original-Received: from localhost ([::1]:55038 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SydiD-00070L-2U for ged-emacs-devel@m.gmane.org; Tue, 07 Aug 2012 02:56:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SydiA-00070G-60 for emacs-devel@gnu.org; Tue, 07 Aug 2012 02:56:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sydi4-00052m-F0 for emacs-devel@gnu.org; Tue, 07 Aug 2012 02:56:14 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:46843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sydi4-00052V-7k for emacs-devel@gnu.org; Tue, 07 Aug 2012 02:56:08 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Sydi1-0000Uw-4D for emacs-devel@gnu.org; Tue, 07 Aug 2012 08:56:05 +0200 Original-Received: from lbe83-2-78-243-104-167.fbx.proxad.net ([78.243.104.167]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Aug 2012 08:56:05 +0200 Original-Received: from thierry.volpiatto by lbe83-2-78-243-104-167.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Aug 2012 08:56:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 61 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lbe83-2-78-243-104-167.fbx.proxad.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) Cancel-Lock: sha1:PJ0sLkQoAdbBa7iKm4jrrvUGHBE= 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:152234 Archived-At: Thierry Volpiatto writes: >> If you could describe the cases where the current spec doesn't work, and >> the cases where the complex spec works better as well as where it fails >> (and whether the current spec also fails for those), that would be >> very helpful. > Ok I will try to collect some examples where it work and not (most work > actually). This is with your edebug-specs that are commented in cl-macs loaded. Here an example that loop understand but not edebug: loop and edebug understand this: for alphaindex = (random* (length alph)) for rand2 = (aref alph alphaindex) collect rand1 into ls collect rand2 into ls 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 The both do the same. Another one: loop and edebug understand this: with len = (length (window-list)) for count from 1 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) while (< count len) 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) Both give same result. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997