[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make window-list return windows for all frames

From: Eli Zaretskii
Subject: Re: Make window-list return windows for all frames
Date: Thu, 15 Jun 2023 16:09:07 +0300

> From: Arthur Miller <arthur.miller@live.com>
> Date: Thu, 15 Jun 2023 14:41:55 +0200
> While working on info.el I needed a function to return info windows on all
> frames. I was a bit surprised to discover there is no built-in option in
> window-list or elsewhere as far as I can see to get all windows for all 
> frames,
> or a filtered list containing interesting windows for all frames. I ended up
> with this:

Please describe in more details why you needed the list of all the
windows.  E.g., why walk-windows won't do whatever you needed to do?

> --- a/doc/lispref/windows.texi
> +++ b/doc/lispref/windows.texi
> @@ -227,7 +227,8 @@ Windows and Frames
>  @defun window-list &optional frame minibuffer window
>  This function returns a list of all live windows owned by the specified
>  @var{frame}.  If @var{frame} is omitted or @code{nil}, it defaults to
> -the selected frame (@pxref{Input Focus}).
> +the selected frame (@pxref{Input Focus}).  If @var{frame} is @code{t},
> +the list of windows for all frames is returned.

Passive voice alert!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]