* walk-window-tree does not return a result.
@ 2022-10-12 6:04 Vladimir Nikishkin
2022-10-12 7:46 ` tomas
0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Nikishkin @ 2022-10-12 6:04 UTC (permalink / raw)
To: emacs-devel
Dear Emacs Developers,
I have recently found out that `walk-window-tree' always returns nil.
Is this intentional? It would make sense, at least to me, to return
the "tree of fun return values". That would requires essentially, adding
a few calls to cons.
Does this make sense? I haven't created an issue, because I thought
that it might be intentional.
--
Your sincerely,
Vladimir Nikishkin (MiEr, lockywolf)
(Laptop)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: walk-window-tree does not return a result.
2022-10-12 6:04 walk-window-tree does not return a result Vladimir Nikishkin
@ 2022-10-12 7:46 ` tomas
0 siblings, 0 replies; 2+ messages in thread
From: tomas @ 2022-10-12 7:46 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 715 bytes --]
On Wed, Oct 12, 2022 at 02:04:13PM +0800, Vladimir Nikishkin wrote:
> Dear Emacs Developers,
>
> I have recently found out that `walk-window-tree' always returns nil.
>
> Is this intentional? It would make sense, at least to me, to return
> the "tree of fun return values". That would requires essentially, adding
> a few calls to cons.
>
> Does this make sense? I haven't created an issue, because I thought
> that it might be intentional.
The nice thing about lexical binding is that you can have your cake
and eat it too... without spoiling other people's cakes :)
(let ((wlist '()))
(walk-window-tree (lambda (w) (setq wlist (cons w wlist))))
(reverse wlist))
Cheers
--
t
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-12 7:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-12 6:04 walk-window-tree does not return a result Vladimir Nikishkin
2022-10-12 7:46 ` tomas
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).