From: <tomas@tuxteam.de>
To: emacs-devel@gnu.org
Subject: Re: walk-window-tree does not return a result.
Date: Wed, 12 Oct 2022 09:46:17 +0200 [thread overview]
Message-ID: <Y0ZwyQwA7IrSD+Mp@tuxteam.de> (raw)
In-Reply-To: <87r0zdr2s7.fsf@laptop.lockywolf.net>
[-- 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 --]
prev parent reply other threads:[~2022-10-12 7:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-12 6:04 walk-window-tree does not return a result Vladimir Nikishkin
2022-10-12 7:46 ` tomas [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y0ZwyQwA7IrSD+Mp@tuxteam.de \
--to=tomas@tuxteam.de \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.