From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.devel Subject: Re: Make window-list return windows for all frames Date: Fri, 16 Jun 2023 07:29:27 +0000 Message-ID: <321af4c6c101bd5a1bd2@heytings.org> References: <83fs6sub2k.fsf@gnu.org> <83cz1wu4vw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29095"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org To: Arthur Miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 16 09:30:18 2023 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 1qA3uU-0007NZ-Dt for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Jun 2023 09:30:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qA3tp-0008B9-0n; Fri, 16 Jun 2023 03:29:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qA3tn-00089a-Hx for emacs-devel@gnu.org; Fri, 16 Jun 2023 03:29:35 -0400 Original-Received: from heytings.org ([95.142.160.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qA3tk-0004de-3Z; Fri, 16 Jun 2023 03:29:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1686900568; bh=BPyPui9clQY05mJ0q6FUmYQk9+NaKpMfRcIB7Kb+m6A=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=mjbCgw+bJgVNZ38ru8cy9Lh3ZUPrTUFWIub/sS3tTAgXGAObXB4MRaM+ut4Q3arDr dh1RjjtNUw47+eVoQf3qUBInBp82Idn0H5c4yABXi6I3bCZgTBifR6HDFCmCLoZKfa KWaT7jGuNlK7TbaPastlXN2LEXTWpHN0YRysT+QkPlWTxy1qbDcB8zyg2k+LaAXwVF DGGIjC+B+TsP+lxEBNYIlNivtOSWZswTNsAFsSkCpxl2oETVTboMcO/CCVXaoL9iSV d67eKE8xpAr67Sp8iMY87hwl/tzkFKQlGC/vi+IQEsHbD4H6CV0hW8JlFA4DKrwZ2X aHcwimtMYp9ug== In-Reply-To: Received-SPF: pass client-ip=95.142.160.155; envelope-from=gregory@heytings.org; helo=heytings.org 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_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:306822 Archived-At: > > It is also about the API, perhaps it is just me, but I expected > window-list to take 't for the frame and consider all frames, because of > get-buffer-window doing so. > The problem I see is that twelve window-related functions (next-window, previous-window, window-list-1, get-buffer-window, walk-windows, get-window-with-predicate, get-lru-window, get-mru-window, get-largest-window, get-buffer-window-list, one-window-p, delete-windows-on) already accept t for their ALL-FRAMES argument, together with the symbol 'visible, the number 0, and a frame. Why would window-list only accept t?