Subject: bug#7492: 23.2; cl loop over the windows: infinite loop, info doc

From: Glenn Morris <[email-masked]>
Date: Mon, 29 Nov 2010 19:29:26 -0500

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.