From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.devel Subject: Re: walk-window-tree does not return a result. Date: Wed, 12 Oct 2022 09:46:17 +0200 Message-ID: References: <87r0zdr2s7.fsf@laptop.lockywolf.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Tgv+Wu8ewja4jo1Z" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30489"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 12 09:49:22 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiWUT-0007i9-UQ for ged-emacs-devel@m.gmane-mx.org; Wed, 12 Oct 2022 09:49:21 +0200 Original-Received: from localhost ([::1]:34182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiWUS-00044z-Al for ged-emacs-devel@m.gmane-mx.org; Wed, 12 Oct 2022 03:49:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiWRb-0002HQ-1O for emacs-devel@gnu.org; Wed, 12 Oct 2022 03:46:27 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:39446) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiWRY-0005sY-TN for emacs-devel@gnu.org; Wed, 12 Oct 2022 03:46:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=a7YXFNBOsMexfR3jsNST82QByEREuvHtqxVJLFQKZW8=; b=QTxgxP6RI2Lb3EAZ5WGi5TvNE9 w73PfM1G8dF9OSiFaBEV5LXy+sVPR0AK6O+X+KmyrkZKyNQBOnFOobv2sz1Uq8M8I8m39MbvhyL8T prgvtIfdOfUBg/Bu5z5v4m7fv0icB0maoA4xnAo7wekRbGVkmeHOhybYuxnHqqhMODNdJPrD/z0op wy0WdNof7QNjCgFaq5TqJwGOevsL/5W4qxRqEQb+RkbqPEQUoGZJcfAal+pQ2Tt6zfoFjw92mgFSu 0rhCjvsZ8Cp9r0qJkkamz+73Cpmbpi31mxrJOjnsDFpKEaLxtYxTlCQiIP+Pl4pnFAHOgMQKv4v6d zXl9IUUQ==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1oiWRV-0006z4-1v for emacs-devel@gnu.org; Wed, 12 Oct 2022 09:46:17 +0200 Content-Disposition: inline In-Reply-To: <87r0zdr2s7.fsf@laptop.lockywolf.net> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:297585 Archived-At: --Tgv+Wu8ewja4jo1Z Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 12, 2022 at 02:04:13PM +0800, Vladimir Nikishkin wrote: > Dear Emacs Developers, >=20 > I have recently found out that `walk-window-tree' always returns nil. >=20 > 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. >=20 > 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 --=20 t --Tgv+Wu8ewja4jo1Z Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCY0ZwwgAKCRAFyCz1etHa RgEVAJ9QX7wc2cUoPk58bqmGBIFjFoeYJgCfewuHZ4xZwbgw2py3ArtQ5WrqgOw= =mLlq -----END PGP SIGNATURE----- --Tgv+Wu8ewja4jo1Z--