Received: (at 78835) by debbugs.gnu.org; 13 Jul 2025 14:29:02 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 13 10:29:02 2025 Received: from localhost ([127.0.0.1]:54132 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uaxhN-0007qq-Nv for submit <at> debbugs.gnu.org; Sun, 13 Jul 2025 10:29:02 -0400 Received: from fhigh-a6-smtp.messagingengine.com ([103.168.172.157]:34879) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1uaxhK-0007qI-M1 for 78835 <at> debbugs.gnu.org; Sun, 13 Jul 2025 10:28:59 -0400 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id 36F181400212; Sun, 13 Jul 2025 10:28:53 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Sun, 13 Jul 2025 10:28:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1752416933; x=1752503333; bh=WHPFGCLS4xtt40IlcZ3pvSSaOVE9UvMlp3+J62FDQEU=; b= Or2VKzDv3a9bb4t2x7+9zU7qOZTTqsQ/pQ6A2eVDGLoMjhvgS3hR/lzlg0Q2EIh3 +Nk3LGgOaQ/amidD+u/my+2EAH4bU9WwG3YNMVwgxlyILYOVRH2QPxteqU4Di1DW OQld1puRkLpztggjSx5+QGxTGUoj48dI5yHuoyK3dRzGOno1fttN17BEpJ9LauOA EcCOXsNvSt++QPUdgEM6tFDaRDeDzCgwzY85wJMnVtOvx1Wks1haJpGcdVv31ik4 VKVrUdItCLad8bUBjWzEXyBNCquTZe9jQIHDy4XuZIy/F8X4R9Qs+unJJ1RWCehY OSmyeotMNMzFb9mZNd5wDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1752416933; x=1752503333; bh=W HPFGCLS4xtt40IlcZ3pvSSaOVE9UvMlp3+J62FDQEU=; b=eTpk4sm8+pPg5RO3s h7E6Rb/qogMzw53r50y9pmWU2NEuZRWXjumZLtbl1/yNpcQkrhB2+B6wSwsByvlu EamONl0PKU6r2TW5BIWgjTlPUARk36D04W94spLJeXZx01kRw8XWD/QBXdQx9yZ1 frH4M9YBBlJgu4TGiNt81dhAl0cQIv7EpKUHqoHSqwKoJHpNgCDUt5tcSxiFoHiQ tmzy3U0w7QFWtnPJYqbc3bni2eT5LVWGEVegJFGbr8pbtu5BarHqpb+NwZkwqxhS +CEGNfH0YaFa4gEW+s+sSK2S7RawG2CedxxjKESS36uGwCg1UKllmVIj4HpXhii5 kApwQ== X-ME-Sender: <xms:pMJzaJtpEz-foHtxyFYhJTrODnNkcYaH0gVEvPno6_3LrRfGBHzzLg> <xme:pMJzaCovUkWL7J6sPJvrKbUbzIh5Gdi8HuOJ5KAZF0VpMfdW4Xbw9yCKXe0y4pGeP GaxJAmt6cw930-YSU0> X-ME-Received: <xmr:pMJzaOkZ8Gj_vFijNaFzZMcC2WncGLh0Tb9cBLSYHGP6lmdQ-XFZWTOpzZI29MnmdX0g> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdegleefudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuhffvfhgjtgfgsehtkeertddtvdejnecuhfhrohhmpeffmhhithhrhicu ifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrthhtvghrnh epheehfffhkedtjeevieduvefggfeliedukeffjeevffekkedvudfgheegtdejueeknecu ffhomhgrihhnpehjuhhmphhshhgrrhgvrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhn sggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehruhgurg hlihgtshesghhmgidrrghtpdhrtghpthhtohepjeekkeefheesuggvsggsuhhgshdrghhn uhdrohhrgh X-ME-Proxy: <xmx:pcJzaOzbFEDzo23mFI7AuueHyqpcdcoCSczdHMKnxcUA6IxC1zVFlQ> <xmx:pcJzaOmWnwl8ZaHoQlV7aRAwWT1rDLldacWT5WJW_IjAm5OrrEiAGw> <xmx:pcJzaPdJ6YIPbgt0tc1MjTy-xj_dEd8XQWdAy_JSNdIABcxd0VVGfQ> <xmx:pcJzaMpfTmndua9oGPIuTmf027O0ihRjySH7CXOFoG8-ko8nYmftzQ> <xmx:pcJzaC6D5gxdJaZIO4z_TUIp3qF7UVlap-VYClkWjdItVYT8ffLl9fuO> Feedback-ID: i07de48aa:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 13 Jul 2025 10:28:52 -0400 (EDT) Message-ID: <a5ca36a3-ee9d-43e6-953f-c7b8db3d17aa@HIDDEN> Date: Sun, 13 Jul 2025 17:28:50 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#78835: Wrong pop-to-buffer behavior after one display-buffer-in-side-window call From: Dmitry Gutov <dmitry@HIDDEN> To: martin rudalics <rudalics@HIDDEN>, 78835 <at> debbugs.gnu.org References: <948f77d1-de3f-4cd7-969a-4138c040581f@HIDDEN> <64d836c8-2c9f-4227-af88-2dbfeb1976e4@HIDDEN> <d54f1b4d-8f32-46a1-be76-f6d41c495260@HIDDEN> <95c606ee-224b-4dde-a8ec-b241c6b46907@HIDDEN> <4281563d-a32a-4ae7-9675-d5b8223b6e69@HIDDEN> <dd4f6dd4-2322-49fb-84ab-146cd55bb007@HIDDEN> Content-Language: en-US In-Reply-To: <dd4f6dd4-2322-49fb-84ab-146cd55bb007@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78835 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) On 13/07/2025 14:53, Dmitry Gutov wrote: > On 21/06/2025 05:23, Dmitry Gutov wrote: >>> a/lisp/window.el b/lisp/window.el >>> index f24e581ba1e..b27e1ca56e9 100644 >>> --- a/lisp/window.el >>> +++ b/lisp/window.el >>> @@ -5452,6 +5452,10 @@ quit-restore-window >>> (if (window-combined-p window) >>> (/= (nth 3 quad) (window-total-height window)) >>> (/= (nth 3 quad) (window-total-width window)))) >>> + >>> + (unless (window-combined-p window) >>> + (y-or-n-p "Adjusting width, continue? ")) >>> + >>> ;; Try to resize WINDOW to its old height but don't signal an >>> ;; error. >>> (condition-case nil >>> >>> If and when it asks you, apply >> >> Thank you. So far I'm running with just this addition for a couple of >> hours, and have not seen the prompt yet (nor the bug with horizontal >> resizing again). Will report back when that happens. > > Just an update: I've seen the prompt today and moved to step 2 (removed > the 'unless horizontal' condition). It didn't seem to help. Here is a screencast which shows me evaluating the new code with eval-buffer (somewhere in the middle of the video), and still seeing the prompt when I repeat a certain sequence of actions: - Show the diff buffer (for window.el), actually. - Quit it with 'q'. BTW, despite me answering the prompt 'n' the width gets adjusted anyway. Hope the link works, if not, I can reupload it somewhere else: https://jumpshare.com/s/cb8wWgizBFmSSF31fsPr
bug-gnu-emacs@HIDDEN
:bug#78835
; Package emacs
.
Full text available.Received: (at 78835) by debbugs.gnu.org; 13 Jul 2025 11:53:42 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 13 07:53:42 2025 Received: from localhost ([127.0.0.1]:51993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uavH3-0000eC-VT for submit <at> debbugs.gnu.org; Sun, 13 Jul 2025 07:53:42 -0400 Received: from fhigh-a4-smtp.messagingengine.com ([103.168.172.155]:50267) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1uavH0-0000dg-R5 for 78835 <at> debbugs.gnu.org; Sun, 13 Jul 2025 07:53:40 -0400 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.phl.internal (Postfix) with ESMTP id 7069E140023D; Sun, 13 Jul 2025 07:53:33 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Sun, 13 Jul 2025 07:53:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1752407613; x=1752494013; bh=CbFtKICevjrDozk0bbT55xNEVvWJYuTKEXW6lE/ySRw=; b= O1CQxxLcuvWRUbCs/tau38RqBlCPWTswycaKxLj5LYcwjXVGm7wuUaYxKNmy05Ox Ym40t5ysBbiZRi4/PTmBnCITWNWmZR8vd41stCslvDcselKkZuq6M1FuY0+02BD0 23tWHgVswDf8WuFT8oAm804Cu0So+nvzsds197wg3BfODElM43iwwDUaN/NM4bWv o9+F6v+Ktl50Cq6IPgDmzRDPpPlN6j653Qx8sTKDee4S/+besKUfELXbbbZZRvJN Z/OWDdiUMorjGq0pb/OgYTfhSDKgfpv7h90J/D+L+PSbH7Vo72B0AZJKArEOR4Yo 9FmoH3RNcS3zA3ohiPq8jQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1752407613; x=1752494013; bh=C bFtKICevjrDozk0bbT55xNEVvWJYuTKEXW6lE/ySRw=; b=bKIkf5efPWjh3zQ+L OpGfvp4jVQ8oWllTaTHMSTY9kHJ4bEE7DijJi6FyRmpBgUG08u5i32ppqCXVY4Bd KV1B+OaD+gCChdQDtOohRMvpWQQsAhD/4EKJq+Gl3mkmXGn3NRSEMvxqP2meKNTc 9TUH6SClJyAtqfpnBRY7xVg21VGP20xYr+fCeiskgvXTNvYeo/NRLtgWqwdNCYVX MHcPi77+pQPLEEvWumnTklPObj9dbg3dTijSfN/dQ3LDAhKW/gYo1OOYmLXsDq49 Z7HhTLbNG0ACm5GPSW0OPg25s7IXGi+gDMghT/FG3Xdt/+vM6/+DyE768yeLm2XF lQmUQ== X-ME-Sender: <xms:PZ5zaKymP-2JCX1DEPPsKT94DTThUfySeHgLeOaXVO8ysMv94L2kpQ> <xme:PZ5zaGd1sTb1UQXrDOfLlQBS8vEjvQAHLXt0wbintQbBeKUcaPtYWXF4-CARiIP7F OZn_1IywN7KhoHJ3vs> X-ME-Received: <xmr:PZ5zaOLP122BdfKv7uNa2HIzo6i5Ie4wx9YaOO7q0BvTj9Ul7uA5aFOsPeEMHfDHEORX> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdegkeellecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuhffvfhgjtgfgsehtkeertddtvdejnecuhfhrohhmpeffmhhithhrhicu ifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrthhtvghrnh epieelvefhhfdvheevudeludehieeikeeftedvgfeludfgheduieekgfduffejffeinecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughmihhtrh ihsehguhhtohhvrdguvghvpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhu thdprhgtphhtthhopehruhgurghlihgtshesghhmgidrrghtpdhrtghpthhtohepjeekke efheesuggvsggsuhhgshdrghhnuhdrohhrgh X-ME-Proxy: <xmx:PZ5zaPEMxzMXlI_Gfwqf02f-FtV75frvRwqypXjppZlxQNd8rGMdEw> <xmx:PZ5zaAr0JGvsAyZIir3CZIzbB1aLJRlxU_zMr9xkXtm-01fKAfbTGA> <xmx:PZ5zaASXyVJjPII76eW4KsQ3THueZm-AnwpBpvOHPs-z9DSxqiWGBQ> <xmx:PZ5zaFPcBL88bw7k6_emLHgH7MWTBih3jWcGfkSVUEGqXssJwiV-cw> <xmx:PZ5zaKepZZExDNOHSK8YPII4d-355TrFLlyZRfM-mfdj9zyqCD2d7Ahu> Feedback-ID: i07de48aa:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 13 Jul 2025 07:53:31 -0400 (EDT) Message-ID: <dd4f6dd4-2322-49fb-84ab-146cd55bb007@HIDDEN> Date: Sun, 13 Jul 2025 14:53:28 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#78835: Wrong pop-to-buffer behavior after one display-buffer-in-side-window call From: Dmitry Gutov <dmitry@HIDDEN> To: martin rudalics <rudalics@HIDDEN>, 78835 <at> debbugs.gnu.org References: <948f77d1-de3f-4cd7-969a-4138c040581f@HIDDEN> <64d836c8-2c9f-4227-af88-2dbfeb1976e4@HIDDEN> <d54f1b4d-8f32-46a1-be76-f6d41c495260@HIDDEN> <95c606ee-224b-4dde-a8ec-b241c6b46907@HIDDEN> <4281563d-a32a-4ae7-9675-d5b8223b6e69@HIDDEN> Content-Language: en-US In-Reply-To: <4281563d-a32a-4ae7-9675-d5b8223b6e69@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78835 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) On 21/06/2025 05:23, Dmitry Gutov wrote: >> a/lisp/window.el b/lisp/window.el >> index f24e581ba1e..b27e1ca56e9 100644 >> --- a/lisp/window.el >> +++ b/lisp/window.el >> @@ -5452,6 +5452,10 @@ quit-restore-window >> (if (window-combined-p window) >> (/= (nth 3 quad) (window-total-height window)) >> (/= (nth 3 quad) (window-total-width window)))) >> + >> + (unless (window-combined-p window) >> + (y-or-n-p "Adjusting width, continue? ")) >> + >> ;; Try to resize WINDOW to its old height but don't signal an >> ;; error. >> (condition-case nil >> >> If and when it asks you, apply > > Thank you. So far I'm running with just this addition for a couple of > hours, and have not seen the prompt yet (nor the bug with horizontal > resizing again). Will report back when that happens. Just an update: I've seen the prompt today and moved to step 2 (removed the 'unless horizontal' condition).
bug-gnu-emacs@HIDDEN
:bug#78835
; Package emacs
.
Full text available.Received: (at 78835) by debbugs.gnu.org; 21 Jun 2025 02:23:47 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 20 22:23:47 2025 Received: from localhost ([127.0.0.1]:59315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uSntS-0003jl-Us for submit <at> debbugs.gnu.org; Fri, 20 Jun 2025 22:23:47 -0400 Received: from fhigh-a8-smtp.messagingengine.com ([103.168.172.159]:44335) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1uSntE-0003hi-WC for 78835 <at> debbugs.gnu.org; Fri, 20 Jun 2025 22:23:41 -0400 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id 2A392114015E; Fri, 20 Jun 2025 22:23:27 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Fri, 20 Jun 2025 22:23:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1750472607; x=1750559007; bh=C3udp0MnQwhxyirlUXkEupH/Z5lIx3o84AzHY9Pt4x0=; b= uEKfEDAfkQP9ZVTkMWWbT3sLnq9rEyOKIA6Zy3xVN7H46xc9ohOo6Jsygdh9C6Zn lsnNnj6suUF78GLHywau8qUEt9gOHaczt6gvo6iOEUDl9WWXQe5ORoGFj6Kk/dwJ BdgHQrcrX4pl7ctZO++HApQmOT/sWpHQTRiIFFKMRlZqe6Vykq9b4bSWB7qMkDEH 6JERhOMMtB73zjQpPVM/Qm+d17NYxrq+aYo0gpNc+LMolYGF5d/7cenP2/YUIvHa We3c27v+qGFkqK3dPSzQJORdPxySYKx9+L5JJwYzMgFC6PRVJIOQQVs6ZMnFnCDE 52XKPZaA68FKHz3svBU6IA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1750472607; x=1750559007; bh=C 3udp0MnQwhxyirlUXkEupH/Z5lIx3o84AzHY9Pt4x0=; b=bkGG+8U8HS5dSPDkV ZTK6HeJ9AYIqgwpkGd1a5t46B0uez68zGsio9tcQUxNK6/jgQctWzwQiR+LdQfMA t+DnpqfCfyFQ2Q3VKqhxBtojWvLNICwinTeNVga1IC8mpxK31brPG6wSiv+/ClDJ PmnYwg36nMYCynYrh1s46vJfs6lHz2lkuRYj0qP5NG8rGG0cOfrjtXdDYvmhXqul EB3oafGrwPlZE7d5v1vR7Kv+NP2+go0MOnpSGka+cW1a5g44I8R8rvia/kBehttu i2GkwkeLXO2CawyXO9Pv6Y6zf6rhW4NPe8BHJqQO/rMZ3/c/7ivPLpD8Xtl92YmG E3YQQ== X-ME-Sender: <xms:nhdWaGJwt9aQoumy9zclW27BLYol3sJxTloQEwRJPldVjwXbOcOVFA> <xme:nhdWaOIBYRlmzRgTjwaN2KlchEFc_QJL3HVbtfWKJRz0Uoj9WflC8SLw0NAXAl8mr 8LoLiN3y07RlHKKKj8> X-ME-Received: <xmr:nhdWaGsxt6W4PFHLYwnjj7athNdM07g7fB9CtGB7L0xLiS7lJv2T-f_MDU3L3feaojwq> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddvgddutddtjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeffmhhithhrhicu ifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrthhtvghrnh epgeeugeetffduvdejvedvleeliedtfedtudfhfeefffejudekveejvdeffffgveegnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughmihhtrh ihsehguhhtohhvrdguvghvpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhu thdprhgtphhtthhopehruhgurghlihgtshesghhmgidrrghtpdhrtghpthhtohepjeekke efheesuggvsggsuhhgshdrghhnuhdrohhrgh X-ME-Proxy: <xmx:nhdWaLaY7cKMkRUVqoONqyBsK40CxGWfbtDXrP1Ya1A4sY58ZL4h8A> <xmx:nhdWaNZNaU7uq_3_V9avkDoCea3kMA4vN-wdn3Bmw4hvrIcD655mSw> <xmx:nhdWaHAE89SOt-eUyHkIfmlqQm8bdwF_S5H76nwg7zzGXmu_-gvfYg> <xmx:nhdWaDYVU6uBCSJbX_sQXQb7FDfoHgqajLX81ISV5laufGWE0cyHug> <xmx:nxdWaBIlIkfjxXznOhpGdb8i3ZFSbZWcLg8_qiSIixTeVl4W7LD9iOL3> Feedback-ID: i07de48aa:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 20 Jun 2025 22:23:25 -0400 (EDT) Message-ID: <4281563d-a32a-4ae7-9675-d5b8223b6e69@HIDDEN> Date: Sat, 21 Jun 2025 05:23:23 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#78835: Wrong pop-to-buffer behavior after one display-buffer-in-side-window call To: martin rudalics <rudalics@HIDDEN>, 78835 <at> debbugs.gnu.org References: <948f77d1-de3f-4cd7-969a-4138c040581f@HIDDEN> <64d836c8-2c9f-4227-af88-2dbfeb1976e4@HIDDEN> <d54f1b4d-8f32-46a1-be76-f6d41c495260@HIDDEN> <95c606ee-224b-4dde-a8ec-b241c6b46907@HIDDEN> Content-Language: en-US From: Dmitry Gutov <dmitry@HIDDEN> In-Reply-To: <95c606ee-224b-4dde-a8ec-b241c6b46907@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78835 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) On 20/06/2025 10:32, martin rudalics wrote: > > That seems to fix it indeed, thanks. > > Pushed to master. Thanks! > > On a related topic though, another scenario that happens over here is > > 'quit-window' restoring a window _width_ to a value that looks > > unexpected to me. For example, just now after applying your patch from > > a buffer, I pressed 'q' and the window (the one on the left in a > > configuration similar to test scenario) got resized to 2/3rds of its > > width. Any ideas about that perhaps? > > Hmm... Apply > > a/lisp/window.el b/lisp/window.el > index f24e581ba1e..b27e1ca56e9 100644 > --- a/lisp/window.el > +++ b/lisp/window.el > @@ -5452,6 +5452,10 @@ quit-restore-window > (if (window-combined-p window) > (/= (nth 3 quad) (window-total-height window)) > (/= (nth 3 quad) (window-total-width window)))) > + > + (unless (window-combined-p window) > + (y-or-n-p "Adjusting width, continue? ")) > + > ;; Try to resize WINDOW to its old height but don't signal an > ;; error. > (condition-case nil > > If and when it asks you, apply Thank you. So far I'm running with just this addition for a couple of hours, and have not seen the prompt yet (nor the bug with horizontal resizing again). Will report back when that happens.
bug-gnu-emacs@HIDDEN
:bug#78835
; Package emacs
.
Full text available.Received: (at 78835) by debbugs.gnu.org; 20 Jun 2025 07:33:01 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 20 03:33:00 2025 Received: from localhost ([127.0.0.1]:45741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uSWFA-0000Th-FL for submit <at> debbugs.gnu.org; Fri, 20 Jun 2025 03:33:00 -0400 Received: from mout.gmx.net ([212.227.15.19]:54057) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1uSWF5-0000Sx-OA for 78835 <at> debbugs.gnu.org; Fri, 20 Jun 2025 03:32:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1750404768; x=1751009568; i=rudalics@HIDDEN; bh=MOvbuRmW/NgaBEkThHc+xIRBL7Z/MyqDHOTXkeyoyR8=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=p5RSlqIFPWi6/rjPDbrnDvuPBZlz13iQd+p9p7Q0BNr2/U3dB2xmRES+utMtJP84 VYqHgxpklY5wAd1r3tJKJXBrnYzen4WzS192UqyDXvkip5/ZDtqdWj6pt0Gr7alN5 yb1tQhw6Z+WlzPkTPFSopfbItu152SSqFxLeb9XxG7lrBOf2fo/KwhC8JurALuA0P NwxE01QvSjkiwCdDtxzGEamoqGQ9z4Jfmf8U8mey2ulPLK9Eyt+KWU7jWsRdNoZTM ZofL2iTRUlRw2r8FB/OmPPXXYH6dzsvfqxsr4EAhg6UIo+nS/SW7Y4oxjESUs32zA khsJwelUBTxy3M1PIw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.31.113] ([213.142.96.89]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MXXuH-1uGnkN28IJ-00WBPG; Fri, 20 Jun 2025 09:32:48 +0200 Message-ID: <95c606ee-224b-4dde-a8ec-b241c6b46907@HIDDEN> Date: Fri, 20 Jun 2025 09:32:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#78835: Wrong pop-to-buffer behavior after one display-buffer-in-side-window call To: Dmitry Gutov <dmitry@HIDDEN>, 78835 <at> debbugs.gnu.org References: <948f77d1-de3f-4cd7-969a-4138c040581f@HIDDEN> <64d836c8-2c9f-4227-af88-2dbfeb1976e4@HIDDEN> <d54f1b4d-8f32-46a1-be76-f6d41c495260@HIDDEN> Content-Language: en-US From: martin rudalics <rudalics@HIDDEN> In-Reply-To: <d54f1b4d-8f32-46a1-be76-f6d41c495260@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:wa5/4tEgs6ZkBdjhTx7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6nMjAWJ84piu+RqcaQwORVFtvGsS/l6x1LDgNGUyTQqGoC1RPxiYtf hvF9Q6oRv7WTVZjspHMZsCECydopdVufxaOS8yX8dGE+hi2UbUvBrY/ttxZRW9cvIvPpdLcxD pJ6SAKaEnc9bK9jWn3ZbYJaVaAMcz+LrOZ0lNNugBYwdYRVG1YOixfgWdS3JWqffDYFnlrUJx coWmTkUI/RVuRM1JThf2XpE7A9YdGddRwxEXXssVgQ48RHp0vhf/QS4dfL5oSq3nV8PLAtW8e pcPD/RI6iqwfT8xZZ5+W1DYNJzQ8gD0PGjKFfd6OeWPi/Mo39NBBfJiiAasV7KbfopuZAaRQA QvJEV3EKzkkBVFWw5CeJ4wUf4qFqhT6PF0up60BD0XmXCTl0lm9v/SnvBFw= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78835 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > That seems to fix it indeed, thanks. Pushed to master. > On a related topic though, another scenario that happens over here is > 'quit-window' restoring a window _width_ to a value that looks > unexpected to me. For example, just now after applying your patch from > a buffer, I pressed 'q' and the window (the one on the left in a > configuration similar to test scenario) got resized to 2/3rds of its > width. Any ideas about that perhaps? Hmm... Apply a/lisp/window.el b/lisp/window.el index f24e581ba1e..b27e1ca56e9 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -5452,6 +5452,10 @@ quit-restore-window (if (window-combined-p window) (/= (nth 3 quad) (window-total-height window)) (/= (nth 3 quad) (window-total-width window)))) + + (unless (window-combined-p window) + (y-or-n-p "Adjusting width, continue? ")) + ;; Try to resize WINDOW to its old height but don't signal an ;; error. (condition-case nil If and when it asks you, apply diff --git a/lisp/window.el b/lisp/window.el index f24e581ba1e..a6f93e067b5 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -5899,15 +5899,14 @@ split-window window (- (if new-parent 1.0 (window-normal-size window horizontal)) new-normal))) - (unless horizontal - (let ((quit-restore (window-parameter window 'quit-restore))) - (when quit-restore - (let ((quad (nth 1 quit-restore))) - (when (and (listp quad) (integerp (nth 3 quad))) - ;; When WINDOW has a 'quit-restore' parameter that - ;; specifies a previous height to restore, remove that - ;; - it does more harm than good now (Bug#78835). - (setf (nth 3 quad) nil)))))) + (let ((quit-restore (window-parameter window 'quit-restore))) + (when quit-restore + (let ((quad (nth 1 quit-restore))) + (when (and (listp quad) (integerp (nth 3 quad))) + ;; When WINDOW has a 'quit-restore' parameter that + ;; specifies a previous height to restore, remove that + ;; - it does more harm than good now (Bug#78835). + (setf (nth 3 quad) nil))))) (let ((new (split-window-internal window new-pixel-size side new-normal refer))) and tell me if it asks you again. > It is very sporadic, and I don't have any reliable reproduction, so if > if it doesn't ring a bell, I can try to get more info first. I don't recall that I ever tried to restore a previous width too but apparently I did (and did not even document it). martin
bug-gnu-emacs@HIDDEN
:bug#78835
; Package emacs
.
Full text available.Received: (at 78835) by debbugs.gnu.org; 19 Jun 2025 16:59:15 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 19 12:59:15 2025 Received: from localhost ([127.0.0.1]:36009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uSIba-00051L-8O for submit <at> debbugs.gnu.org; Thu, 19 Jun 2025 12:59:15 -0400 Received: from fout-b8-smtp.messagingengine.com ([202.12.124.151]:37567) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1uSIbW-00050F-8h for 78835 <at> debbugs.gnu.org; Thu, 19 Jun 2025 12:59:11 -0400 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfout.stl.internal (Postfix) with ESMTP id 242AE11401B4; Thu, 19 Jun 2025 12:59:04 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Thu, 19 Jun 2025 12:59:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1750352343; x=1750438743; bh=I/pCF9hIHUDOgeFoOeLSSO0delOG5F43P7UFnEKd368=; b= R5X7KvsduuaCAqxv0o1K7jwaHXVTNCIvhcfqBNjSnL1uWnHhaoinj0i2mEkLYLRE k2AGaS1zylizBIe83TbJghrZ5NDZv6rAtogIrRVUfPyKOUFEAiX1UynirPsQo6CO AdPZc38U2OLgSnKVCFTpYFfE71Q4+4KwT9JYsNXVxk6NsRfuJ8dDikpSkcZzq6V6 GDgOYnSMDY8AFwhrclgo/xwItXcC71hEpZ6LcCmqaDtEySoaxkyr/cx8VEcxevuI qVSpVl5oh2SJGY2Ro2MAciT6mLKC8FBvwEkYm5leG85vrJTwLGGb0EPPs08X50Uu 8wMjzN03g0fCKJ+k0BDK6Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1750352343; x=1750438743; bh=I /pCF9hIHUDOgeFoOeLSSO0delOG5F43P7UFnEKd368=; b=iSjZcyGJidjcFXYR5 7At5fWS3R1xofb5K94op5ZaWEEZ6FKxxT801ui2JAMIE6gqjZ5dqqYs5++AsrGqj /hqQesG8lHqcs6MjMpDp5+Sfxe01KfXHk67n9s94IrNzpJMAk8gixKhoKEa2N7iZ jhrWeHALbSYgJ3oLHGW2tz3djnl8ALKHGrz6ko+knA3XC2+IFdBZiUjHGMqm6I76 kTywXHGvI7KS2NH4kforoTjNk5GvRAkYC6ODxhIGGVEtob8MgMw2EEuN3EbkV1w3 nC5SSAWzNtxobkS77peWAClb4qj4+/OcnY+01eWqLu+zAnv/MoPHTiM6Wzzb1Q4n PnKhA== X-ME-Sender: <xms:10FUaAMOQnS1hbYe9vZnC3K-vfsWGB_M5UGn5Tg3dg2j2S6V0hP-Hw> <xme:10FUaG_FcKXhMShwCzYpgqzqSiSb434JOi5GuWXO0T3hlPjPDaatL6o5VZ5twcGcA lKopFS5MHyuKUh-C-w> X-ME-Received: <xmr:10FUaHQiGv4XXYbI3UtbC65qdugLASp4aenbLvOe6V5YCOvgaQXhQKllDq5Rd4lB> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddvgdeitdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh epkfffgggfuffvfhfhjggtgfesthekredttddvjeenucfhrhhomhepffhmihhtrhihucfi uhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtthgvrhhnpe egueegteffuddvjeevvdelleeitdeftdduhfeffeffjedukeevjedvfeffgfevgeenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhi esghhuthhovhdruggvvhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhht pdhrtghpthhtoheprhhuuggrlhhitghssehgmhigrdgrthdprhgtphhtthhopeejkeekfe ehseguvggssghughhsrdhgnhhurdhorhhg X-ME-Proxy: <xmx:10FUaItP6EvV1pMGs0taBvydm7Hh3iFag2YkR9sHHlqCM2zl94YC7Q> <xmx:10FUaIeEyCOTQF1jZ096IvAAaNIkEgEphtwY1Yn4qKFfJA1zk67o6A> <xmx:10FUaM1TzCK3SO7AWjguqu7zm8mRZNV3RhKtqKW682XRouzqPrM-Mg> <xmx:10FUaM9t491alTPNEnyJt4WbHt_AG9BisCuFaq4kZ8abM-_RBX0y7Q> <xmx:10FUaJtOJ8skuJ5wKhDJj0e773L8NiCapqyAB6ikyxYP90o_KcnC9vfk> Feedback-ID: i07de48aa:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 19 Jun 2025 12:59:02 -0400 (EDT) Message-ID: <d54f1b4d-8f32-46a1-be76-f6d41c495260@HIDDEN> Date: Thu, 19 Jun 2025 19:59:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#78835: Wrong pop-to-buffer behavior after one display-buffer-in-side-window call To: martin rudalics <rudalics@HIDDEN>, 78835 <at> debbugs.gnu.org References: <948f77d1-de3f-4cd7-969a-4138c040581f@HIDDEN> <64d836c8-2c9f-4227-af88-2dbfeb1976e4@HIDDEN> Content-Language: en-US From: Dmitry Gutov <dmitry@HIDDEN> In-Reply-To: <64d836c8-2c9f-4227-af88-2dbfeb1976e4@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78835 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Hi Martin! On 19/06/2025 18:06, martin rudalics wrote: > It's not specifically related to side windows, a plain 'display-buffer' > should suffice. The problem is that 'pop-to-buffer' reusing the bs.el > window tries to restore the height of the initial *scratch* window after > first displaying bs.el in it and later splitting it vertically. In the > patch below I now try to remove the reference to the old height when a > window is split vertically. Please try it. > > Thanks, martin > > diff --git a/lisp/window.el b/lisp/window.el > index e372ef8b9bb..f24e581ba1e 100644 > --- a/lisp/window.el > +++ b/lisp/window.el > @@ -5899,6 +5899,16 @@ split-window > window (- (if new-parent 1.0 (window-normal-size window > horizontal)) > new-normal))) > > + (unless horizontal > + (let ((quit-restore (window-parameter window 'quit-restore))) > + (when quit-restore > + (let ((quad (nth 1 quit-restore))) > + (when (and (listp quad) (integerp (nth 3 quad))) > + ;; When WINDOW has a 'quit-restore' parameter that > + ;; specifies a previous height to restore, remove that > + ;; - it does more harm than good now (Bug#78835). > + (setf (nth 3 quad) nil)))))) > + That seems to fix it indeed, thanks. On a related topic though, another scenario that happens over here is 'quit-window' restoring a window _width_ to a value that looks unexpected to me. For example, just now after applying your patch from a buffer, I pressed 'q' and the window (the one on the left in a configuration similar to test scenario) got resized to 2/3rds of its width. Any ideas about that perhaps? It is very sporadic, and I don't have any reliable reproduction, so if if it doesn't ring a bell, I can try to get more info first.
bug-gnu-emacs@HIDDEN
:bug#78835
; Package emacs
.
Full text available.Received: (at 78835) by debbugs.gnu.org; 19 Jun 2025 15:06:47 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 19 11:06:46 2025 Received: from localhost ([127.0.0.1]:35648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uSGqj-0003Tn-Bt for submit <at> debbugs.gnu.org; Thu, 19 Jun 2025 11:06:46 -0400 Received: from mout.gmx.net ([212.227.17.20]:52455) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1uSGqf-0003ST-5M for 78835 <at> debbugs.gnu.org; Thu, 19 Jun 2025 11:06:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1750345594; x=1750950394; i=rudalics@HIDDEN; bh=5O7IVK2qRiAhQscf/1JQu3sfffoTCkvbg6ftlxvbqhs=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=mQ/IgTA6kO+l10cIf+doy/ClRJGq7YHOw+YnllD93HxqfgDrpurOsGTw/R5hpXW0 D/idaOGNAmirtpAK3b34uJ7tkr5rIyHJ00XB4crdJajTpgdwcUBvelOdzsvO5oeYw zzx61qNGZbR7nJE8YuvR0gAsDxE7j4uUqe7m2JWl8fiuIoSO5gNnRpDOCLTva/LmH VK7Pj73z1lj8sCQ96A64EjA4E0Nr+/BLBG6hNW0XroN8rnNvX4tUuwZ6hLMPrxA85 QcaxW8+ZQgVP401tlg8MO+2sqhuXBowbZwe4pr7tJjyh0wTDOQ5v3Mf83/ShTFuZC dwz3Jl31NRi+AryOxg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.31.113] ([46.125.249.77]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MS3il-1uMXFx11EB-00HsM7; Thu, 19 Jun 2025 17:06:34 +0200 Message-ID: <64d836c8-2c9f-4227-af88-2dbfeb1976e4@HIDDEN> Date: Thu, 19 Jun 2025 17:06:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#78835: Wrong pop-to-buffer behavior after one display-buffer-in-side-window call To: Dmitry Gutov <dmitry@HIDDEN>, 78835 <at> debbugs.gnu.org References: <948f77d1-de3f-4cd7-969a-4138c040581f@HIDDEN> Content-Language: en-US From: martin rudalics <rudalics@HIDDEN> In-Reply-To: <948f77d1-de3f-4cd7-969a-4138c040581f@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:c955UwUC3M+JzGlUsWB8keIr+98QTnCw0uVwMu37uyLw6gn2CjL HlfxCFMO5TF+wL2VfnnKmz8cMf0UUjbEmuOvGzQ5khhfiarY7VUUJqm0yHjfm/I+fSw2gbw 6Gtq3Wtt425lyDXABWdUr5rnS9w+VtxLzi1KvH0JIB+lO8QIvLiSOba/UhQ0viTXO/thq2s 1n07XGBUo2oOrvuuIabXA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:xSj3AJHzxuk=;X++23etltDhCSbBrpNCnFmiSTEs +eQUb4gILLKy8SPiLLXrD4voMrttAC04bc0Lk9VVup3T+MgBySlcgoRfyXvaa7TKTAYpFApPJ PXHCPQzU7+sPPieH0hcnU86aRQAYaoUAsY2hyoD2OUbw5kH5G6bTY1AiuixuBnj54jamsuL5H mWHPH6ZUCtTW1XPta3UDtRExHX0wD1t1d2gOGcxgKwUDIg0XqYpCYPbjuNclKdplGnnO+3ARm QCwiEygFVcVUA5d8WIV8OpP6JBCngA71O8OaMccEi+UM9RFgXENTJP1pSXFriqv8JAAH0hmnU AELhMwICaPT/cFsbcBJ68GXm840i+geHiYl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Nrz62nGzcqob9vurY54kixxHPPRLf5FUWGgAE/ITmP 3hoVgFENJ7IA9qo27oyjmHWxFgazCBcDyBRL7xRFPI4wQxftU+kpvKZKA+9PpYm9DgeW3Zre4 gLfq45xgvT1FnIQ7OA0nkI0D+mttaR/5ZyIyT3FGnn9oKrTh8Leg6GF30zVcCpwP/tDLfro26 ift2RSBnvc1mz7yEe6lmEqsKQYeGi/8W/bcYfsEqKXcJqPkxZ+pwooVcKJVeL2HbaBb/LMi0u FjNxjaRyD4sETKP7myO5gHpNRJGZlaINbs8GZquzgwXtxpMYgrDopKm+7v5fPG0fTrDXRhWU7 AtVUtQ02AMx9fR6wmrUkbAo9rN7HxIH/PlasEw8//OzgZAe4wcL7BvslC+CbX9sUQVDgPEp0A lNmpOQm/b0WYxZley84rEqlpXvDU3+f3gHDxRcGMJbeIWezDA2NEfsxN9u5EDa8Bj7OEhyAL/ B1BqooN7ER8bJ18xAcvCCK6pHV+zAcLtbaNAfWjGkEEuZHGsIG2vJZS8HCa5ZzrTLtdRjSIR5 b65ihJ5lgZi2UdrWraMciKivBXKLJIcAaBkPrA5LSNIjiwdwb6vAZCDjgf4GlamWmCPLL+x4Z qukwe+OmoP4yyBD+Kn/M9LkCtpETDAe6W1gAWJkHVa/DqL2VRS/RJGWCnls0Yn+FioGzmPMLZ MrWDetCpBY+kkMB/yIH8/KymrCQnQ3z6U0X0K9NbxAFJkK6MYitWqtOHjJ3R0zIfK2l/pebu2 0SlOI5ZLup+y7l6AbqCQKTxklGtwN5A6jWclWdx9kj6C2lKUp6wKiQyUf9wFtOn+jypBrNOMn nDQy6ARujUR0dXTT2WkAtHWwadg+bF9UFmLE5V3oivP69DCA/u2E9xfFhWI= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78835 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Hi Dmitry > Anyway, the crux of the problem is that after a side window had been > used, later commands that use pop-to-buffer would reside the window > unnecessarily, and then not restore the previous size on quit either. It's not specifically related to side windows, a plain 'display-buffer' should suffice. The problem is that 'pop-to-buffer' reusing the bs.el window tries to restore the height of the initial *scratch* window after first displaying bs.el in it and later splitting it vertically. In the patch below I now try to remove the reference to the old height when a window is split vertically. Please try it. Thanks, martin diff --git a/lisp/window.el b/lisp/window.el index e372ef8b9bb..f24e581ba1e 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -5899,6 +5899,16 @@ split-window window (- (if new-parent 1.0 (window-normal-size window horizontal)) new-normal))) + (unless horizontal + (let ((quit-restore (window-parameter window 'quit-restore))) + (when quit-restore + (let ((quad (nth 1 quit-restore))) + (when (and (listp quad) (integerp (nth 3 quad))) + ;; When WINDOW has a 'quit-restore' parameter that + ;; specifies a previous height to restore, remove that + ;; - it does more harm than good now (Bug#78835). + (setf (nth 3 quad) nil)))))) + (let ((new (split-window-internal window new-pixel-size side new-normal refer))) (window--pixel-to-total frame horizontal)
bug-gnu-emacs@HIDDEN
:bug#78835
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 19 Jun 2025 02:19:45 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 18 22:19:45 2025 Received: from localhost ([127.0.0.1]:58744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uS4sR-0005tv-1B for submit <at> debbugs.gnu.org; Wed, 18 Jun 2025 22:19:45 -0400 Received: from lists.gnu.org ([2001:470:142::17]:43436) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1uS4sO-0005sj-FP for submit <at> debbugs.gnu.org; Wed, 18 Jun 2025 22:19:41 -0400 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 <dmitry@HIDDEN>) id 1uS4sJ-0000WF-61 for bug-gnu-emacs@HIDDEN; Wed, 18 Jun 2025 22:19:35 -0400 Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <dmitry@HIDDEN>) id 1uS4sH-0003l7-BC for bug-gnu-emacs@HIDDEN; Wed, 18 Jun 2025 22:19:34 -0400 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id 0A3A01380487 for <bug-gnu-emacs@HIDDEN>; Wed, 18 Jun 2025 22:19:30 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Wed, 18 Jun 2025 22:19:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm3; t=1750299570; x=1750385970; bh=QhyYHLlMt66yevc6VF/6gFJCSUfa4NIs k8UHizqkqFo=; b=IbpGDjvlEhWp9qw2jvbDXtQvswWnFnmX7DUEsZHFw0P36TM9 l0v0R06cYJleLCvAqqhZ61CZbw21wSi3bkmGA92VvCt0vi1s3B/YKQ61Dm2sC9BJ BPMXYDghU442jIh1Q91vgQV+rxd2wjEoWQCNtVcFhEfXrFq9WX5Jg4BeHvoOH68+ nag0/VVMx0zUbEqkSH/BqID9YzFSJn5o2amioHciCd/SxFGe5yIDJSRlRQMnrOGh iyyL5nxY9OIGWhGBySs4ZzQV6MO3mCXH9iz4r8TfBIBxMyhcZrUYZagjLLek6grv 7cZ/2AT4C5bQzUXQCcolvNIXqoG2eYHgVW7rbw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1750299570; x= 1750385970; bh=QhyYHLlMt66yevc6VF/6gFJCSUfa4NIsk8UHizqkqFo=; b=N PrbvSk4UR+1lj7sISAlBBw6LBRnU63H+Kr5EHpDvP+CjIqf02VL5gQIIQnzteZHu cGvi/ifTOAe6ywCm1EnLjo89Yow7N13jck2oX7mMwJnXDgnoNRc0K1BCwicQ1yaC dK8XDjjXKuamOjK/3fupCSk0zVT3xCCCfw9hxB7Ner2Hj8ogh/+5eMEERKwajX5L i7ciJXIeCDlzS554gUR7JBU5+InqLyiFd93Lu518DEQA0mXx9io4v7UZ29CclQ7n 87QpArNAMO9JuZjSmwg2saaCe7D0+HuOd5nLPY4ZeEJ8yw7xwGf7O4O1IT1HTz85 8497Ou0pVmYms+whoCIpg== X-ME-Sender: <xms:sXNTaCqB1_lRodon4FBScBUg7LCjSKMT2CVP9II0NERwFnqi3zIFIw> <xme:sXNTaArXe8UW9MUC13LycyFLmkVF7LH5NkAgEwzcNV5A6j2ZobdWWc16i9oHXgLgR IvT9G98w2lrc-ATL70> X-ME-Received: <xmr:sXNTaHPjhTkHVfyLPGxUr9mxGUEykFp6Ig9cjDa5ETt3Q2vX25i7U4fPZHT5WJ6R> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddvgdegfedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpegtkfffgg gfvffhufesmhdtreertddvjeenucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughm ihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtthgvrhhnpeehvdffheeigefftd elgfeugfelgfduueehfeeljeduueekieetiefhhefhheeuheenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdrug gvvhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohep sghughdqghhnuhdqvghmrggtshesghhnuhdrohhrgh X-ME-Proxy: <xmx:sXNTaB6WQnVxVrJXsaJBSzbYusWoAAi_4ivfnTA3t0GjfEdVmtz0tg> <xmx:sXNTaB6jJGRuXcir7l3jPPcpW9rdtxVUJqWjL35J-DHBNmyKpVOqXw> <xmx:sXNTaBgEtXL1ULN8CgyN5B-rHC-pmTCITkpz3E3mmxF6LYRKAYBcbA> <xmx:sXNTaL7ffYG2wlGZo6KyoKwn45P6hNHrKPQmz-TzGMDmyhmanSZFTw> <xmx:snNTaMY3ET_3ovgzIIZa3YisEZEOtlItqPlisnsrsZXqi__rVNZwRd1Q> Feedback-ID: i07de48aa:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for <bug-gnu-emacs@HIDDEN>; Wed, 18 Jun 2025 22:19:29 -0400 (EDT) Content-Type: multipart/mixed; boundary="------------eHOcusyAToF0wCS80lt9dK11" Message-ID: <948f77d1-de3f-4cd7-969a-4138c040581f@HIDDEN> Date: Thu, 19 Jun 2025 05:19:27 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: bug-gnu-emacs@HIDDEN From: Dmitry Gutov <dmitry@HIDDEN> Subject: Wrong pop-to-buffer behavior after one display-buffer-in-side-window call Received-SPF: pass client-ip=103.168.172.144; envelope-from=dmitry@HIDDEN; helo=fout-a1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.3 (/) This is a multi-part message in MIME format. --------------eHOcusyAToF0wCS80lt9dK11 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Debbugs-Cc: rudalics@HIDDEN Hi Martin and others! I've started noticing this recently, and it especially gets apparent with the new "lexical binding is nil" compilation warning windows which use a side window. A self-contained reproducer took some effort, though. To use the attached script, load it from the command line like this: src/emacs -Q -l d-b-below-bug.el NOTE: Simply evaluating it from an interactive session won't work because it seems to require a particular sequence of buffer/window creation operations. It does seem to work to copy it form-by-form to evaluate with M-:. Anyway, the crux of the problem is that after a side window had been used, later commands that use pop-to-buffer would reside the window unnecessarily, and then not restore the previous size on quit either. Probably related to the recent changes in window.el, though I haven't bisected yet. But this definitely does not reproduce with Emacs 30 or earlier releases. --------------eHOcusyAToF0wCS80lt9dK11 Content-Type: text/x-emacs-lisp; charset=UTF-8; name="d-b-below-bug.el" Content-Disposition: attachment; filename="d-b-below-bug.el" Content-Transfer-Encoding: base64 Ozs7IC0qLSBsZXhpY2FsLWJpbmRpbmc6dCAtKi0KCihzZXRxIHNpZGUtYnVmZmVyIChmaW5k LWZpbGUtbm9zZWxlY3QgImxpc3AvZGZyYW1lLmVsIikpCgooZGlzcGxheS1idWZmZXIgc2lk ZS1idWZmZXIKICAgICAgICAgICAgICAgICcoZGlzcGxheS1idWZmZXItaW4tc2lkZS13aW5k b3cpICcoKGRpcmVjdGlvbiAuIGJlbG93KSkpCgooc3dpdGNoLXRvLWJ1ZmZlciAoZmluZC1m aWxlLW5vc2VsZWN0ICJsaXNwL2JzLmVsIikpCgoobGV0ICgobmV3LXdpbiAoc3BsaXQtd2lu ZG93LWhvcml6b250YWxseSkpKQogIChzcGxpdC13aW5kb3ctdmVydGljYWxseSBuaWwgbmV3 LXdpbikpCgo7OyBUaGlzIGlzIG9wdGlvbmFsOiB5b3UgY2FuIHF1aXQgdGhlIHNpZGUgd2lu ZG93LCB5b3UgY2FuIGRlbGV0ZSBpdCwgb3IKOzsgeW91IGNhbiBrZWVwIGl0IGFyb3VuZC4g VGhlIGVmZmVjdCBvZiB0aGUgYHBvcC10by1idWZmZXInIGNhbGxzIGFmdGVyCjs7IGl0IChs aWtlIHRoZSBvbmUgYmVsb3cpIHBlcnNpc3RzIGFueXdheS4KKHF1aXQtd2luZG93IG5pbCAo Z2V0LWJ1ZmZlci13aW5kb3cgc2lkZS1idWZmZXIpKQoKOzsgc2ltcGxlLmVsIGdldHMgZGlz cGxheWVkIGluIGEgcmVzaXplZCAoZW5sYXJnZWQpIHdpbmRvdyB0aGF0IGxvb2tzCjs7IGxp a2UgdGhlIG90aGVyIHdpbmRvdyBpbiBpdHMgdmVydGljYWwgZ3JvdXAgaXMgc3VwcG9zZWQg dG8gYmUgYSBzaWRlCjs7IHdpbmRvdyAoYnV0IGl0IGlzIG5vdCkuCihwb3AtdG8tYnVmZmVy IChmaW5kLWZpbGUtbm9zZWxlY3QgInNpbXBsZS5lbCIpKQo= --------------eHOcusyAToF0wCS80lt9dK11--
Dmitry Gutov <dmitry@HIDDEN>
:rudalics@HIDDEN, bug-gnu-emacs@HIDDEN
.
Full text available.rudalics@HIDDEN, bug-gnu-emacs@HIDDEN
:bug#78835
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.