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: Thu, 15 Nov 2018 01:52:53 +0200 Organization: LINKOV.NET Message-ID: <87sh03jjxm.fsf@mail.linkov.net> References: <874leeaiah.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> <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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1542241849 13837 195.159.176.226 (15 Nov 2018 00:30:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Nov 2018 00:30:49 +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 Thu Nov 15 01:30:45 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 1gN5YR-0003Qo-VS for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Nov 2018 01:30:44 +0100 Original-Received: from localhost ([::1]:35060 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gN5aY-000373-Ht for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Nov 2018 19:32:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gN5Zo-0002Su-Qx for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2018 19:32:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gN5Zj-00029v-SR for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2018 19:32:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48480) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gN5Zi-000298-Ic for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2018 19:32:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gN5Zi-0001Pk-Em for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2018 19:32: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: Thu, 15 Nov 2018 00:32: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.15422419055368 (code B ref 32825); Thu, 15 Nov 2018 00:32:02 +0000 Original-Received: (at 32825) by debbugs.gnu.org; 15 Nov 2018 00:31:45 +0000 Original-Received: from localhost ([127.0.0.1]:52731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gN5ZR-0001OW-E7 for submit@debbugs.gnu.org; Wed, 14 Nov 2018 19:31:45 -0500 Original-Received: from golden.birch.relay.mailchannels.net ([23.83.209.73]:54019) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gN5ZO-0001OI-Vo for 32825@debbugs.gnu.org; Wed, 14 Nov 2018 19:31:43 -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 C90D9502126; Thu, 15 Nov 2018 00:31:40 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a77.g.dreamhost.com (unknown [100.96.20.98]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 7ABC4502D4B; Thu, 15 Nov 2018 00:31:40 +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); Thu, 15 Nov 2018 00:31:40 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Thread-Minister: 7cbc4add4a7b7348_1542241900699_2308562585 X-MC-Loop-Signature: 1542241900699:3759700633 X-MC-Ingress-Time: 1542241900698 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 40388815FB; Wed, 14 Nov 2018 16:31:40 -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=ZRBHn7CwQjwUDBSctujLM7NtAfk=; b= qGnysSN4X5t8jUMOhRkQjJCDvOeWPKnj0OSV6fqSQt+uc22cDTq0e6vd2sNmS4tz yD1si5HN65xVWzSUgEMdwCSaxJWYPYjH8pxh7M97Se7z3aRxbPTKpGzrn2jBBfYK cQmnRuy3SdtJEEH0zkbMF5lj9fDVEFS710Bfyf7OurY= 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 A73D8815FD; Wed, 14 Nov 2018 16:31:37 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a77 In-Reply-To: <5BEBDDE6.1030701@gmx.at> (martin rudalics's message of "Wed, 14 Nov 2018 09:33:42 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrleeggddvhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtjedrvdeggeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdejrddvgeegpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheprhhuuggrlhhitghssehgmhigrdgrthenucevlhhushhtvghrufhiiigvpedt 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:152402 Archived-At: >> *Edebug Backtrace* should be treated exactly the same way as >> *Backtrace*, but in practice this means adding a whole bunch >> of same variables >> >> debugger-previous-window >> debugger-pre-previous-window >> debugger-previous-window-height >> ... >> >> to edebug.el >> >> edebugger-previous-window >> edebugger-pre-previous-window >> edebugger-previous-window-height >> ... >> >> and duplicating all related code. This doesn't look right. >> >> I think that either we should generalize display-buffer-in-previous-window >> to avoid such duplication, or better never display temporary buffers >> in unrelated windows at all, i.e. to replace display-buffer-in-previous-window >> in the action list with display-buffer-below-selected and >> display-buffer-at-bottom. > > Pardon me, aren't you confusing 'display-buffer-in-previous-window' > with 'switch-to-prev-buffer' here? The change I propose doesn't > affect 'display-buffer-in-previous-window' at all. It simply should > avoid that 'switch-to-prev-buffer' shows such a buffer. Also, while > 'display-buffer-below-selected' and 'display-buffer-at-bottom' usually > do what they are intended to do they may also reuse an existing window > when splitting fails. 'display-buffer-in-previous-window' searches the buffer in the prev-buffers list that 'switch-to-prev-buffer' might want to skip (I still doubt this need). I proposed to generalize display-buffer-in-previous-window to avoid duplicating code like in debug.el that uses debugger-previous-window, debugger-pre-previous-window, debugger-previous-window-height because the same feature is needed in other packages like edebug.el. The same feature is needed also for next-error to display hits from different buffers in the same window. Or better to obviate the need in all this complex special handling simply by removing the get-lru-window rule in the default action, thus replacing it with get-mru-window.