From unknown Fri Aug 15 18:04:51 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#7492 <7492@debbugs.gnu.org> To: bug#7492 <7492@debbugs.gnu.org> Subject: Status: 23.2; cl loop over the windows: infinite loop, info doc Reply-To: bug#7492 <7492@debbugs.gnu.org> Date: Sat, 16 Aug 2025 01:04:51 +0000 retitle 7492 23.2; cl loop over the windows: infinite loop, info doc reassign 7492 emacs submitter 7492 michael_heerdegen@web.de severity 7492 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 26 15:35:39 2010 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 29 19:23:56 2010 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 To: michael_heerdegen@web.de 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: 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-Debbugs-No-Ack: yes 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-Debbugs-Envelope-To: 7492 Cc: 7492@debbugs.gnu.org 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 debbugs-submit-bounces@debbugs.gnu.org Thu Dec 02 12:42:04 2010 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. From unknown Fri Aug 15 18:04:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 31 Dec 2010 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator