From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#32825: 27.0.50; Deterministic window management Date: Sun, 11 Nov 2018 09:53:29 +0100 Message-ID: <5BE7EE09.3020003@gmx.at> References: <874leeaiah.fsf@mail.linkov.net> <87tvl3rvks.fsf@mail.linkov.net> <5BD96392.3040008@gmx.at> <87y3adakkh.fsf@mail.linkov.net> <5BDAC0ED.9030405@gmx.at> <87h8h0juwn.fsf@mail.linkov.net> <5BDC0E38.5020901@gmx.at> <87d0rl7kl1.fsf@mail.linkov.net> <5BDEB6BA.5000307@gmx.at> <87y3a8jz6v.fsf@mail.linkov.net> <5BE00EB1.6090107@gmx.at> <87sh0fxkih.fsf@mail.linkov.net> <5BE154F5.4050902@gmx.at> <87r2fxsvl5.fsf@mail.linkov.net> <5BE2AF02.40909@gmx.at> <87sh0cva5h.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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1541926334 27307 195.159.176.226 (11 Nov 2018 08:52:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Nov 2018 08:52:14 +0000 (UTC) Cc: Michael Heerdegen , 32825@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 11 09:52:09 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 1gLlTS-0006sG-CB for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Nov 2018 09:52:06 +0100 Original-Received: from localhost ([::1]:41397 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLlVY-0002o1-OD for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Nov 2018 03:54:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLlVN-0002nu-ON for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 03:54:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLlVK-0007Ew-FZ for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 03:54:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41029) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gLlVK-0007E7-An for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 03:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gLlVK-0005lr-8q for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 03:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Nov 2018 08:54: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.154192642122127 (code B ref 32825); Sun, 11 Nov 2018 08:54:02 +0000 Original-Received: (at 32825) by debbugs.gnu.org; 11 Nov 2018 08:53:41 +0000 Original-Received: from localhost ([127.0.0.1]:45281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLlUz-0005kp-6b for submit@debbugs.gnu.org; Sun, 11 Nov 2018 03:53:41 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:40991) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLlUx-0005kc-G8 for 32825@debbugs.gnu.org; Sun, 11 Nov 2018 03:53:39 -0500 Original-Received: from [192.168.1.101] ([212.95.5.227]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MBnPX-1gB08K248t-00AnP9; Sun, 11 Nov 2018 09:53:31 +0100 In-Reply-To: <874lcok62x.fsf@mail.linkov.net> X-Provags-ID: V03:K1:xKCmGyCz1Ic3XsbhI7A8n06gDiIlVRkMX8eI6cU9266A6LDV7qt IXoghnwJmrA0oikkNttBrdrRPh/Gs5AayR4HDGLgC0QBETlNiXlza73sEBd4OguxjrZcRBE f4shnpYmvw6itQfyEVDTM2i8j6neJvB4FYdVQ0+fk9wwxZx1O1u1Z29t4T9YsScuxmfUetO vFCyiy/kix6hy3GIGZ4EA== X-UI-Out-Filterresults: notjunk:1;V01:K0:zS435cyvLqM=:4mtGG80KIPW9OgMkhlg6Gm Mm2WFmqJJvNk8ldvAYrRLxDzLv7z3Cfcg6lU2x7Y2xjnjWbMumU5YI4fRMCi9tua9z9xEOaxl vC7Hz7Mgi/Wwt0hw3usoEu0rSLVMvC3YqUp8xs0Uk7KPm1VJS/gnWOH4LvABQ6TND1jPSBuZL e+wLoLergb4B/YerElk/h33QabaIW+1LmAiQBuiaXmoi8HxLvJqXI4LTCN7kvEbhN6jwjbqyA q6wM4cM7EFk53sLBC7hR23XXdB0eEJ2cI6o9455tF6bO5rQaTQHl1GE5xbkH7pbInQEIrL0Gq NxhgAh2jTgM7bdehdtDzK/J1A80tYBNzAKedObQL45iVYR6wrmeS3R9W+Z97hDcBIl7Ynz1T6 R+7ibKbAqR9W9miTD11FpfJPggN4sNCf1xqG9ZVG0+Uq1k8TP9NDHYiGRj/2jaXN/IJqg/m/P NBBIxqRCz9hWHV/UpX3sLEjJyFmW2nF0muaBRCfTh2jvk1mIdbqIpIEudr9nnZbBEKz/meNFa p8CgSGyq3TbVM7b6u8dvUnSlR3GsQiQVy/Fv5+iTIKDOt+adiLJRYqRsvbAMDCPUEpKa392Ev tvcpnqOdXUYe61oiaoaM931LmYEiIycDB3vcuJGMLkODTra4A3J0qOlu0DwJj8emBX3gw+8Za ecoyMZo5CankTQAw0uBkcjOhsfSibDvbhw9l23cVBDUZYVAT1Eb/+PFLay89pherPSaJXO1Eh Ebi8PXjlc8VSpk/6mnDS5nTfWZhLmzW2rbG+jCWTK/A4qfLBO9rjF73MbixpritNCF6FJY4J 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:152289 Archived-At: > I tried it long ago to see it works fine, and later reverted locally > because I thought already you pushed it to master. > > Now I tried again with display-buffer-below-selected, and it still > works fine. > > But still it seems better would be to add display-buffer-at-bottom > after display-buffer-below-selected: > > display-buffer-reuse-window > display-buffer-in-previous-window > display-buffer-below-selected > display-buffer-at-bottom > > because display-buffer-at-bottom tries to resize other windows > to accommodate the *Backtrace* window. I certainly won't object but we have to make the previous-window behavior DTRT so the 'display-buffer-at-bottom' won't hide its misbehavior. Currently we use a window's previous buffers for three things: (1) For 'switch-to-prev-buffer'. (2) To find a buffer to display when killing or burying a window's buffer and the window shall be kept. (3) For finding a window in 'display-buffer-in-previous-window'. Personally I don't care about (2). But two things about (1) that annoy me in practice are: When the window-local buffer list is exhausted I get a buffer from the frame-local or global lists, so I often enough get TAGS or other intestines dished in that window and, to double my pleasure, indirectly have these enter the window-local list. I'd rather restart with a buffer from the window-local list provided that list is "long enough". That's fuzzy to implement. And, I get too many irrelevant buffers like temporary ones from the window-local list. OTOH it's just the temporary buffers we want to keep there because of (3). Moreover, when I'm in a window reused by *Help* and I want to temporarily switch to that window's previous buffer then switching back to the window's next buffer should probably get me back to *Help*. So what I'd like is yet another notion of fuzziness that after some time forgets about temporary buffers shown in a window in the past, including *Backtrace*. martin