From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#32825: 27.0.50; Deterministic window management Date: Mon, 19 Nov 2018 01:01:37 +0200 Organization: LINKOV.NET Message-ID: <878t1q2dny.fsf@mail.linkov.net> References: <874leeaiah.fsf@mail.linkov.net> <5BE3F981.8000002@gmx.at> <8736sbmdtv.fsf@mail.linkov.net> <5BE54FBE.306@gmx.at> <874lcqmu6u.fsf@web.de> <5BE582D4.8010201@gmx.at> <874lcok62x.fsf@mail.linkov.net> <5BE7EE09.3020003@gmx.at> <87pnvbpejc.fsf@mail.linkov.net> <5BE93DB5.8070804@gmx.at> <87wophvpag.fsf@mail.linkov.net> <87efbprc1h.fsf@mail.linkov.net> <5BEA9577.1080204@gmx.at> <87sh047dzh.fsf@mail.linkov.net> <5BEBDDE6.1030701@gmx.at> <87sh03jjxm.fsf@mail.linkov.net> <5BED388E.7030506@gmx.at> <875zwyuicg.fsf@mail.linkov.net> <5BEE8587.9090702@gmx.at> <87bm6ntjuk.fsf@mail.linkov.net> <5BF12FE8.6010400@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1542582395 10636 195.159.176.226 (18 Nov 2018 23:06:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 18 Nov 2018 23:06:35 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Michael Heerdegen , 32825@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 19 00:06:30 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gOW98-0002fg-Av for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Nov 2018 00:06:30 +0100 Original-Received: from localhost ([::1]:53626 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gOWBE-0006Zp-No for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Nov 2018 18:08:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gOWAh-0006Qs-L4 for bug-gnu-emacs@gnu.org; Sun, 18 Nov 2018 18:08:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gOWAe-00058V-1B for bug-gnu-emacs@gnu.org; Sun, 18 Nov 2018 18:08:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55219) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gOWAc-000588-VO for bug-gnu-emacs@gnu.org; Sun, 18 Nov 2018 18:08:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gOWAc-0008Bk-PN for bug-gnu-emacs@gnu.org; Sun, 18 Nov 2018 18:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Nov 2018 23:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32825 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32825-submit@debbugs.gnu.org id=B32825.154258245131423 (code B ref 32825); Sun, 18 Nov 2018 23:08:02 +0000 Original-Received: (at 32825) by debbugs.gnu.org; 18 Nov 2018 23:07:31 +0000 Original-Received: from localhost ([127.0.0.1]:59476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gOWA6-0008Al-Le for submit@debbugs.gnu.org; Sun, 18 Nov 2018 18:07:30 -0500 Original-Received: from indri.birch.relay.mailchannels.net ([23.83.209.92]:50219) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gOWA5-0008Ad-JZ for 32825@debbugs.gnu.org; Sun, 18 Nov 2018 18:07:30 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 2488D5E141E; Sun, 18 Nov 2018 23:07:28 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a77.g.dreamhost.com (unknown [100.96.26.166]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id D20DF5E283A; Sun, 18 Nov 2018 23:07:27 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a77.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Sun, 18 Nov 2018 23:07:28 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Trail-Occur: 1e18d4431f1a5fb4_1542582448014_2030289402 X-MC-Loop-Signature: 1542582448014:2820499973 X-MC-Ingress-Time: 1542582448013 Original-Received: from pdx1-sub0-mail-a77.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a77.g.dreamhost.com (Postfix) with ESMTP id 888DF805E9; Sun, 18 Nov 2018 15:07:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=E5O+DPwW3w2rCMsrp/a1BLSf7ro=; b= mxGqefHA+/PPw1ljnKg41HOX77fkjUWbkLJIFfJWioQdi4Xj+Hqcc91wQnjOZuuA q6Tfi0yPpj+XyHCMvbRrsu7TEtE7T6ndDks2HP31Ov33pzQDp7r+U83W8yZsnXWO Hq1MEpFPsV6GYws2pB/YbYoaTzo2ECZZ8u9HMdEN9LQ= Original-Received: from mail.jurta.org (m91-129-107-244.cust.tele2.ee [91.129.107.244]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a77.g.dreamhost.com (Postfix) with ESMTPSA id 018E6805E7; Sun, 18 Nov 2018 15:07:24 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a77 In-Reply-To: <5BF12FE8.6010400@gmx.at> (martin rudalics's message of "Sun, 18 Nov 2018 10:24:56 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedruddtvddgtdehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdejrddvgeegnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtjedrvdeggedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehruhgurghlihgtshesghhmgidrrghtnecuvehluhhsthgvrhfuihiivgepud X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:152516 Archived-At: >> Then maybe better to add such buffers to the end of the prev-buffers list >> or to the end of the next-buffers list. > > We have that option in 'debugger-bury-or-kill'. Do you mean to > generalize it? Yes, it could be moved to a new alist entry. > OK. What do you want to call it, 'windows-to-examine'? Too long name. Maybe better 'try-windows'? Or 'reuse-window' if this alist entry will be used in display-buffer-use-some-window. > Shall we make it a list of function/frame pairs defaulting to > > '((get-lru-window . nil) (get-largest-window . visible) (get-largest-window . 0)) > > where nil stands for whatever > > (or (window--frame-usable-p (selected-frame)) > (window--frame-usable-p (last-nonminibuffer-frame))) > > returns? Or do you want to control the DEDICATED and NOT-SELECTED > arguments as well? I hope that 'get-largest-window', 'get-lru-window' > and 'get-mru-window' are 100% compatible wrt their arguments but > haven't verified that yet. I thought it could be a list of window types to try in the specified order, for example: (try-windows . (mru lru largest-visible largest-visible-and-iconified)) >> I don't understand what an alist entry you mean. Or you mean adding >> a new alist entry like (default-window . mru-not-selected)? > > For example. To provide the 'windows-to-examine' sketched above you > wouldn't want to specify an action function too. But where this alist entry should be customized for all action functions? I guess not in display-buffer-alist that specifies specific buffers. Then where? Maybe, in display-buffer-base-action with nil action and non-nil alist that will be the default alist for all actions?