From unknown Fri Aug 15 20:52:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7492: 23.2; cl loop over the windows: infinite loop, info doc Resent-From: Michael Heerdegen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Nov 2010 20:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7492 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 7492@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: michael_heerdegen@web.de Received: via spool by submit@debbugs.gnu.org id=B.129080373926946 (code B ref -1); Fri, 26 Nov 2010 20:36:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Nov 2010 20:35:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PM518-00070Y-Vh for submit@debbugs.gnu.org; Fri, 26 Nov 2010 15:35:39 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PM516-00070M-9N for submit@debbugs.gnu.org; Fri, 26 Nov 2010 15:35:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PM56L-0000IA-Ko for submit@debbugs.gnu.org; Fri, 26 Nov 2010 15:41:02 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:57172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PM56L-0000Hx-Eb for submit@debbugs.gnu.org; Fri, 26 Nov 2010 15:41:01 -0500 Received: from [140.186.70.92] (port=36807 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PM56K-0003PC-01 for bug-gnu-emacs@gnu.org; Fri, 26 Nov 2010 15:41:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PM56I-0000GZ-HM for bug-gnu-emacs@gnu.org; Fri, 26 Nov 2010 15:40:59 -0500 Received: from fmmailgate02.web.de ([217.72.192.227]:59157) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PM56I-0000Fp-7q for bug-gnu-emacs@gnu.org; Fri, 26 Nov 2010 15:40:58 -0500 Received: from smtp02.web.de ( [172.20.0.184]) by fmmailgate02.web.de (Postfix) with ESMTP id AFB40188997CB for ; Fri, 26 Nov 2010 21:38:09 +0100 (CET) Received: from [217.185.137.234] (helo=snow) by smtp02.web.de with asmtp (WEB.DE 4.110 #4) id 1PM53Z-000482-00 for bug-gnu-emacs@gnu.org; Fri, 26 Nov 2010 21:38:09 +0100 From: Michael Heerdegen Date: Fri, 26 Nov 2010 21:38:16 +0100 Message-ID: <874ob3lt1j.fsf@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Sender: michael_heerdegen@web.de X-Provags-ID: V01U2FsdGVkX19S2Pza0FyN5kyhFsNJlgaQnoSk+AmbT32DDjMO UpPmkUPz6ZXvBf6O8gV3d4GQUP/ZJimUnQz2AZRfFQYy8wIKqp yLW9HH6jg/oJWzNbrkYg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -6.6 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) In GNU Emacs 23.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2010-08-14 on raven, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10707000 configured using `configure '--build' 'i486-linux-gnu' '--build' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.2/leim' '--with-x=yes' '--with-x-toolkit=lucid' '--with-toolkit-scroll-bars' '--without-gconf' 'build_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Hello, if you evaluate the following sexp in Emacs -Q, you get an infinitive loop: (progn (require 'cl) (select-window (minibuffer-window)) (loop for win being the windows do 'nothing)) This should be fixed. Moreover, the "CL" info manual should be clarified here: (cl)Top > Control Structure > Loop Facility > For Clauses For looping over "the windows", it only says: `for VAR being the windows [of FRAME]' This clause iterates over the windows (in the Emacs sense) of the current frame, or of the specified FRAME. It's not clear if/when the minibuffer window is included and in which order the iteration is done. From unknown Fri Aug 15 20:52:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7492: 23.2; cl loop over the windows: infinite loop, info doc In-Reply-To: <874ob3lt1j.fsf@web.de> Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Nov 2010 00:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7492 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: michael_heerdegen@web.de Cc: 7492@debbugs.gnu.org Received: via spool by 7492-submit@debbugs.gnu.org id=B7492.12910766378490 (code B ref 7492); Tue, 30 Nov 2010 00:24:01 +0000 Received: (at 7492) by debbugs.gnu.org; 30 Nov 2010 00:23:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PNE0i-0002Ct-Eu for submit@debbugs.gnu.org; Mon, 29 Nov 2010 19:23:56 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PNE0f-0002Cf-SB for 7492@debbugs.gnu.org; Mon, 29 Nov 2010 19:23:54 -0500 Received: from localhost ([127.0.0.1]:34146) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PNE62-0003JF-P1; Mon, 29 Nov 2010 19:29:26 -0500 References: <874ob3lt1j.fsf@web.de> From: Glenn Morris X-Spook: PGP nuclear insurgency pre-emptive ASDIC UFO Putin KGB X-Ran: H6't6L:7t9DD_R<&)w^Sb(8;j11JIKeIl}0AQohu^b[_+i\`Tv2VaMR}J!o+jk)q-B"#@/ X-Hue: red X-Attribution: GM Date: Mon, 29 Nov 2010 19:29:26 -0500 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) Michael Heerdegen wrote: > For looping over "the windows", it only says: > > `for VAR being the windows [of FRAME]' > This clause iterates over the windows (in the Emacs sense) of the > current frame, or of the specified FRAME. > > It's not clear if/when the minibuffer window is included and in which > order the iteration is done. By experiment, the minibuffer is not included, which is why it loops forever if you force it to start there. Does the order matter? Anyway, it's the order that `next-window' gives. `loop' can probably be improved, but I suggest using `walk-windows' (which has well-defined, flexible behaviour wrt the minibuffer) instead and will add a note to cl.texi to this effect. From unknown Fri Aug 15 20:52:16 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: michael_heerdegen@web.de Subject: bug#7492: closed (Re: bug#7492: 23.2; cl loop over the windows: infinite loop, info doc) Message-ID: References: <1x39qggj7n.fsf@fencepost.gnu.org> <874ob3lt1j.fsf@web.de> X-Gnu-PR-Message: they-closed 7492 X-Gnu-PR-Package: emacs Reply-To: 7492@debbugs.gnu.org Date: Thu, 02 Dec 2010 17:43:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1291311782-5617-1" This is a multi-part message in MIME format... ------------=_1291311782-5617-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #7492: 23.2; cl loop over the windows: infinite loop, info doc which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 7492@debbugs.gnu.org. --=20 7492: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D7492 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1291311782-5617-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 7492-done) by debbugs.gnu.org; 2 Dec 2010 17:42:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PODAS-0001RQ-9r for submit@debbugs.gnu.org; Thu, 02 Dec 2010 12:42:04 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PODAQ-0001Qx-ST for 7492-done@debbugs.gnu.org; Thu, 02 Dec 2010 12:42:03 -0500 Received: from localhost ([127.0.0.1]:53751) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PODFt-0006B0-85; Thu, 02 Dec 2010 12:47:41 -0500 To: 7492-done@debbugs.gnu.org Subject: Re: bug#7492: 23.2; cl loop over the windows: infinite loop, info doc References: <874ob3lt1j.fsf@web.de> From: Glenn Morris X-Spook: bank Blowpipe Comirex Merlin Adriatic doctrine defense X-Ran: sz%}UiNPCc3oDBb}`,V$Fz}Qu7JP X-Hue: cyan X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 02 Dec 2010 12:47:40 -0500 In-Reply-To: (Glenn Morris's message of "Mon\, 29 Nov 2010 19\:29\:26 -0500") Message-ID: <1x39qggj7n.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: 7492-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) Version: 24.1 Fixed the manual in 23.3; fixed the infinite loop in 24.1. ------------=_1291311782-5617-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 Nov 2010 20:35:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PM518-00070Y-Vh for submit@debbugs.gnu.org; Fri, 26 Nov 2010 15:35:39 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PM516-00070M-9N for submit@debbugs.gnu.org; Fri, 26 Nov 2010 15:35:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PM56L-0000IA-Ko for submit@debbugs.gnu.org; Fri, 26 Nov 2010 15:41:02 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:57172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PM56L-0000Hx-Eb for submit@debbugs.gnu.org; Fri, 26 Nov 2010 15:41:01 -0500 Received: from [140.186.70.92] (port=36807 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PM56K-0003PC-01 for bug-gnu-emacs@gnu.org; Fri, 26 Nov 2010 15:41:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PM56I-0000GZ-HM for bug-gnu-emacs@gnu.org; Fri, 26 Nov 2010 15:40:59 -0500 Received: from fmmailgate02.web.de ([217.72.192.227]:59157) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PM56I-0000Fp-7q for bug-gnu-emacs@gnu.org; Fri, 26 Nov 2010 15:40:58 -0500 Received: from smtp02.web.de ( [172.20.0.184]) by fmmailgate02.web.de (Postfix) with ESMTP id AFB40188997CB for ; Fri, 26 Nov 2010 21:38:09 +0100 (CET) Received: from [217.185.137.234] (helo=snow) by smtp02.web.de with asmtp (WEB.DE 4.110 #4) id 1PM53Z-000482-00 for bug-gnu-emacs@gnu.org; Fri, 26 Nov 2010 21:38:09 +0100 From: Michael Heerdegen To: bug-gnu-emacs@gnu.org Subject: 23.2; cl loop over the windows: infinite loop, info doc Date: Fri, 26 Nov 2010 21:38:16 +0100 Message-ID: <874ob3lt1j.fsf@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Sender: michael_heerdegen@web.de X-Provags-ID: V01U2FsdGVkX19S2Pza0FyN5kyhFsNJlgaQnoSk+AmbT32DDjMO UpPmkUPz6ZXvBf6O8gV3d4GQUP/ZJimUnQz2AZRfFQYy8wIKqp yLW9HH6jg/oJWzNbrkYg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: michael_heerdegen@web.de List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) In GNU Emacs 23.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2010-08-14 on raven, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10707000 configured using `configure '--build' 'i486-linux-gnu' '--build' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.2/leim' '--with-x=yes' '--with-x-toolkit=lucid' '--with-toolkit-scroll-bars' '--without-gconf' 'build_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Hello, if you evaluate the following sexp in Emacs -Q, you get an infinitive loop: (progn (require 'cl) (select-window (minibuffer-window)) (loop for win being the windows do 'nothing)) This should be fixed. Moreover, the "CL" info manual should be clarified here: (cl)Top > Control Structure > Loop Facility > For Clauses For looping over "the windows", it only says: `for VAR being the windows [of FRAME]' This clause iterates over the windows (in the Emacs sense) of the current frame, or of the specified FRAME. It's not clear if/when the minibuffer window is included and in which order the iteration is done. ------------=_1291311782-5617-1--