GNU bug report logs -
#7492
23.2; cl loop over the windows: infinite loop, info doc
Previous Next
Reported by: michael_heerdegen <at> web.de
Date: Fri, 26 Nov 2010 20:36:02 UTC
Severity: minor
Found in version 23.2
Fixed in version 24.1
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7492 in the body.
You can then email your comments to 7492 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7492
; Package
emacs
.
(Fri, 26 Nov 2010 20:36:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
michael_heerdegen <at> web.de
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 26 Nov 2010 20:36:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7492
; Package
emacs
.
(Tue, 30 Nov 2010 00:24:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 7492 <at> debbugs.gnu.org (full text, mbox):
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.
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Thu, 02 Dec 2010 17:43:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
michael_heerdegen <at> web.de
:
bug acknowledged by developer.
(Thu, 02 Dec 2010 17:43:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 7492-done <at> debbugs.gnu.org (full text, mbox):
Version: 24.1
Fixed the manual in 23.3; fixed the infinite loop in 24.1.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 31 Dec 2010 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 231 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.