From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#45688: 28.0.50; New action for display-buffer? Date: Mon, 11 Jan 2021 20:05:49 +0100 Message-ID: <87im83cn02.fsf@gnus.org> References: <87im8a1dff.fsf@gnus.org> <83y2h6133r.fsf@gnu.org> <8735ze0yp7.fsf@gnus.org> <83o8i20w1f.fsf@gnu.org> <87lfd5yny9.fsf@gnus.org> <87o8i03gem.fsf@gnus.org> <528b7d6b-403a-ffef-b0a0-4a0b6d92bec8@gmx.at> <87turpvxv0.fsf@gnus.org> <87turnh6u8.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15824"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 45688@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 11 20:49:16 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kz3Bj-0003wS-Kr for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jan 2021 20:49:15 +0100 Original-Received: from localhost ([::1]:38316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kz3Bi-0000CM-Jk for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jan 2021 14:49:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kz2Wt-0003Ac-PT for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 14:07:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46730) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kz2Ws-00076q-Pc for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 14:07:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kz2Ws-0002bJ-Ie for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 14:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2021 19:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45688 X-GNU-PR-Package: emacs Original-Received: via spool by 45688-submit@debbugs.gnu.org id=B45688.16103919689933 (code B ref 45688); Mon, 11 Jan 2021 19:07:02 +0000 Original-Received: (at 45688) by debbugs.gnu.org; 11 Jan 2021 19:06:08 +0000 Original-Received: from localhost ([127.0.0.1]:58275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kz2W0-0002a9-9b for submit@debbugs.gnu.org; Mon, 11 Jan 2021 14:06:08 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:56354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kz2Vx-0002Za-76 for 45688@debbugs.gnu.org; Mon, 11 Jan 2021 14:06:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To: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=DdM0clVk93T2ktNbYbg9Q85u+EUZqwgyGtZBou+swmo=; b=gZipbQUbc8ZDdn9rrBAya5TK/4 FWE0jj1YKastQ6mm+JswVV7TwS/ziNung/5wXGK5frBwBF7OKcAbX7aexBME1sbT2o3IxFgF7Udhw p00vnzd26WyDZWNBGh8PYWhpIZzP2VaAMeymxLQtBoE3iIntEs7QeCGc/krWnTwTXfKA=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kz2Vi-0001og-Vc; Mon, 11 Jan 2021 20:05:58 +0100 X-Now-Playing: The Home Current's _Scarred For Life 2_: "Unknown Sameness" In-Reply-To: (martin rudalics's message of "Mon, 11 Jan 2021 19:23:23 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:197743 Archived-At: martin rudalics writes: >> Here's a reproducer from emacs -Q: >> >> (progn >> (setq display-buffer-alist '((".*" >> display-buffer-use-least-recent-window))) >> (pop-to-buffer "file1") >> (pop-to-buffer "file2") >> (split-window-below) >> (pop-to-buffer "file3")) >> >> I end up with the following, and file3 in an oddly large window. > > So you have been splicing in a 'split-window-below' between those calls. > Why didn't you tell me before? I wasn't -- I was jumping around between windows manually, but that's the reproducer I came up with. > 'split-window-below' copies the > 'quit-restore' parameter to the new window and that's what you get. > > Let's try to clean up the height value when copying the 'quit-restore' > parameter as attached. This fixes the reproducer, but not the case of actually jumping around manually -- `M-x display-buffer' sometimes chooses to resize the windows. :-/ In related news, get-lru-window doesn't seem to work reliably? I don't have a reproducer for that, either, but it seems to happen if I have a three window frame, and I call: (setq lru (get-lru-window (selected-frame) nil t)) (window-bump-use-time lru) (get-lru-window (selected-frame) nil t) will then return the same window as `lru'... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no