GNU bug report logs - #51062
Customizable window resizing

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Juri Linkov <juri@HIDDEN>; dated Wed, 6 Oct 2021 17:36:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 51062 <at> debbugs.gnu.org:


Received: (at 51062) by debbugs.gnu.org; 13 Oct 2021 08:36:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 13 04:36:36 2021
Received: from localhost ([127.0.0.1]:58000 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1maZka-00018d-9l
	for submit <at> debbugs.gnu.org; Wed, 13 Oct 2021 04:36:36 -0400
Received: from mout.gmx.net ([212.227.15.19]:58187)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1maZkY-00018Q-8F
 for 51062 <at> debbugs.gnu.org; Wed, 13 Oct 2021 04:36:35 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1634114188;
 bh=VLbzqkWR10UFfoNbhESECAsTZgqy+iczoquO5M+yvSw=;
 h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To;
 b=GS11DSBhmrANMe+yGdc7ydMq3TD2yJopEC8VSLVe1d2vWYx3u0ml8XC6qm4pU79KM
 QoavPhQM126leOcmTE7ohHVnkCn9w+BcI+VbUm7LlKqv/AR2d1keQlDI6saiLjQFKb
 GdwC+BhrS3vhcDmCAUDg5DiSQ3TrCNroIZNMG7Lo=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.1.102] ([212.95.5.69]) by mail.gmx.net (mrgmx005
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mqs0R-1n5WrV02dt-00muxS; Wed, 13
 Oct 2021 10:36:28 +0200
Subject: Re: bug#51062: Customizable window resizing
To: Juri Linkov <juri@HIDDEN>, 51062 <at> debbugs.gnu.org
References: <87zgrm2h6v.fsf@HIDDEN>
From: martin rudalics <rudalics@HIDDEN>
Message-ID: <63433373-a57b-a68a-8ccc-6d4a9192d9a4@HIDDEN>
Date: Wed, 13 Oct 2021 10:36:27 +0200
MIME-Version: 1.0
In-Reply-To: <87zgrm2h6v.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:I2S++V6IeSuuFALuU5VP79BSu6fpPveHCNR36WXBjDuA+xI4dCW
 bxwsMDsJWr7/DaNTtCZhER52UjyRFeUWOjJqcduCG4dMN0YnJ1XUEkqd7BLk02V7Imb1nHc
 QuhZzhoi4IQHYQ260rJSRJR/RqZOriJCh/ANAJ27rRoAUlhqJjpYnSr89Ajxs0isz1H9+bF
 +y1DPHKlNqcYPW7qOJKHw==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:6Dmj+ATPcio=:crGklMJga0GwULRrrxDQDO
 vkVoAxpXV7rJxR1+yPhTwLDDpE6liXrxtFgjSB/du/Tf8rclQgObfdXD90TA7jZmQvwJVdKEx
 TTHwIYQ5Lk0FvXMk0DgzwBMZECuqMvrJgpE4mrf8gP5WglUkRbEMhwZrdS49igFhMv3gAeVxr
 AumQ+kgPf8DNbTue06RcEmI70I8BF/rzqHkA4UWjZ9wlAxYYDNFKY6pzI3xX1L2zRM2vTeKGR
 xfLbcCZS0KkxKVNEF3Y/GOXyFtiQi5hFtwkW61whf8RwIuAImahpX/cZaneRFvU/lpOavVfMM
 HRoO6L+2fKwicO7oCmcv9CPI410lakoSLvr2qeaxJfb2/7v08K/dPwC5D73UBOHcPFsJsuUuV
 vYFCH7TUokd5HuXAKccPFbk6tgxaviX18wWqCO5nJgE4Mfac5DllzpYNH+hh/yvuCezJFRHVM
 PKmmIQgpiRIqdPi6TgKKuf+FAEAcFDjHzVLe828hZfss+PrDtA2YLcBIOzel7xhArULnNxLka
 KNFE+nauK7RVgOWXqyr1Goeoq9F7+yVlw7Z0FL1QOqLgAoOEDFZ/F+Rm+xtvasJ5Kf3PL0J2O
 nyRe6D7Ap6dP482hQkodT/2mahupmWpU3j+4wJ3WQ1Bwn8kv/xtgLKw3QzSf3Jv7U3LQjm4al
 rYvj7zxqmjdMx8MjG6KBtCYegBgDm2cJmaxgAh8Cnq//syqTrhnWBMt3FazxFB7brFBCGnyRh
 HRSTV7oR2a/a4CNNRnfN0OWT6qB8bGZFUyyjBLwy4pmlAu/LtsRVrypwHXu0f69gz2cu/Vv6P
 Vl7SFrzvVrZjlRpJh362Sjx8OUbUXH0ybhuWGmbvoBn1rT9QXdCSJWgdjJPIvF+DMiG96F1bx
 g21Mpohh0koHTkFeng3KEhvAR/nR1os6tvN6rzmo3vjEYQS06FMpWTgT0DQskTq1qXOAwpQ+x
 iMkWrLOrQe0lCHs7mTZJ8AcMCv/xoLAVZhi6DKHeP9O0QjlTP+eFiemZe4kZGasR3pawe6Y0c
 DJUg9nzru7jrgF2RHk1SuqGOjK8pKjQ4ZuhMGyPrsxeuHHfO3rj0r1qZms49QrdwXsWT4A1s6
 rHtAE9imERwqwc=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 51062
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 (-)

 >     Thanks to Martin, the patch in
 >     https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg01873.html
 >     allows customization when display-buffer-alist contains
 >     (window-height . nil)

This patch has been meanwhile applied on master.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51062; Package emacs. Full text available.

Message received at 51062 <at> debbugs.gnu.org:


Received: (at 51062) by debbugs.gnu.org; 7 Oct 2021 09:08:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 07 05:08:48 2021
Received: from localhost ([127.0.0.1]:46039 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mYPOS-0007ej-F4
	for submit <at> debbugs.gnu.org; Thu, 07 Oct 2021 05:08:48 -0400
Received: from mout.gmx.net ([212.227.17.20]:54997)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1mYPOQ-0007eS-Jn
 for 51062 <at> debbugs.gnu.org; Thu, 07 Oct 2021 05:08:47 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1633597720;
 bh=X2aBetRnfLAydrzpPeXxRN6qNF1l4BjBfnQhs+a65cc=;
 h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To;
 b=YQ5tU9TnRI/SqValckAbMMo+LeEWTHQdmAG0mHjfJEOHNBlTq5iefrQj/L73Rkmj4
 Osc9NEbHdQJrrkBgcRU4QjRqi1Dvb8gWu0ph1+aMT+826J4Rm9ahmdUU9U2bNdlivQ
 +TLUOp2cIfbFMyQHzHyTrMrTKUbE6N5uLkDbH8bk=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.1.101] ([213.142.97.180]) by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mdvqg-1n5pGT3K1G-00b69e; Thu, 07
 Oct 2021 11:08:40 +0200
Subject: Re: bug#51062: Customizable window resizing
To: Juri Linkov <juri@HIDDEN>, 51062 <at> debbugs.gnu.org
References: <87zgrm2h6v.fsf@HIDDEN>
From: martin rudalics <rudalics@HIDDEN>
Message-ID: <651a937f-940a-1d2a-66a9-1e41082a37d4@HIDDEN>
Date: Thu, 7 Oct 2021 11:08:37 +0200
MIME-Version: 1.0
In-Reply-To: <87zgrm2h6v.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:TqQtEHft4kC1rcfB5AAsAy0hfz/iyNAbvVT7Z5oY/STPcOlypX6
 Gyw/eTxYbR8uFU1hVT6ciDktn4A+w8R6BBiOZCi2v2KxCMQ0grA3OVs+l9T9RH4d9/2Zh7v
 oU9fndJ4rEI9kcJxoG8Ipvj9CBJ7fuQ4RspEgLg1N7Wk33byAY5BXJmVPZuTmnd88ITzC7J
 H61SULfDLD9qehjkOHE7A==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:xHw6ncP91r8=:RbeG/MmwjYktkDzF+2qEM/
 /NDQtFJREMWajGlUs78jl9uMBfGKyIaB+R8z/ZG2+dTf07gonaD8S33Jh3NAeos/UoDWuWfpP
 NsUdsULsIO2u92SuTt5XBMxr/ABLXL1clE4SQ/CBiHMA6HdFnSYWrXQHUS65fmMBa/s36U6CV
 rJ80J+EAungtsgufZHXYBFpC3IVIHSEp+kcP9e7gcMOacS80CLBJusJ8MGDwXhhygKNN++wLe
 KLaRYLbVyjcS/yRC7nyhhzbTJpyY59AtyYb5c/U5eSCVt+59v75siJY50UkOisRQy277t9pUU
 fpvmL0srxpvmbpeouSEzNy3VI7XR8HQXCDhJI2oBxucPhLmzMJr4ffpFXB/5y3euGijIGlvAB
 Agmv6RXMcEJ8RzNouz0E6UMIMl/g4LICHjp3wlWqaYnpPKOynbe7SLw7sRkvD8EcQLFyRHM3h
 okrYR4STtr+yb+vA1Jl1ONvFniYNVx1HO3RaRqeKgXVlNFUIcfbPMDts/UG71u7HPkge1VTWs
 EcHfJL0m267m7IEt/Itg37+QrOwOJLua4Qt55d6RD3hs4Xolaod5dTEz4KMhT2gF3Q+mRB7VX
 fy6tRiWqGunTlYS/4Wz1Yd+lFcBfaHY0XrAwjglj8l7Eir6yWUu8kdIOCR9Bp2vB7LAO5OCbT
 5AVRClsv6KGVkoBu1rn8p2ja0x53BdV3iTrD6FnlXgcUel+MzhvXHfv8ZOLu96rMaA4zbPOcE
 KUkUlkR6cBERxUXkWv7/wQSBPRJACzHGvzO3k14Z7YebkAB1Hp7IELg7coImWliJbrQsuntLt
 kPl2B+MhRywwQrm/J1mPCUAUkix/mCeZVesMs/AjyuA14UH+c5OXZHK81VSfrLxOAh3AVV3Fs
 gh0x3SNDAuMuRVB6eHQcU/DjaadSF+/Byiq4e9owdgfEeQFcHZaMvPcxtl2deQAzB/Fh38LKx
 3+494W0SxRZE4IiqFTGo7neWphZjYdGbrKjfxH/nbQGJUBoHPgR9O2c93hhN8ae1gh3k4l2kx
 2b431jH5smc3D0XG4kQRuUUjEcESZNjQolyuC1tzd4KkzeT/ulXAnQzTnWtcI0vK4La5MKnZZ
 b9q2adP9vIw1kc=
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 51062
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.0 (-)

 > There are two ways how window resizing is currently hard-coded:
 >
 > 1. As discussed in
 >     https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg01627.html
 >     when temp-buffer-resize-mode is enabled, it's impossible
 >     to disable automatic window resizing of the Help buffer.
 >
 >     Thanks to Martin, the patch in
 >     https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg01873.html
 >     allows customization when display-buffer-alist contains
 >     (window-height . nil)

That patch should help wherever 'temp-buffer-resize-mode' applies, not
just in a Help buffer.

 > 2. As discussed in bug#45688, such commands as vc-log

Which command is 'vc-log'?

 >     , vc-diff
 >     automatically resize the window, and the problem is that currently
 >     shrink-window-if-larger-than-buffer is used in these commands by default,
 >     but this behavior is hard-coded and can't be disabled by customization.
 >     A solution is to create a new hook like 'after-display-buffer-function'
 >     that by default will contain 'shrink-window-if-larger-than-buffer'.

Wherever we currently use an idiom like

(pop-to-buffer (current-buffer))
(goto-char (point-min))
(shrink-window-if-larger-than-buffer)

we should use

(pop-to-buffer
  (current-buffer)
  '(nil (window-height . shrink-window-if-larger-than-buffer)))
(goto-char (point-min))

instead.  But if 'display-buffer' is not involved, there isn't much we
can do.  Maybe something like 'display-buffer-same-window' _after_
putting the buffer into the selected window, but this might not be 100%
compatible.  Certainly not for Emacs 28.

martin






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51062; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Oct 2021 17:35:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 06 13:35:05 2021
Received: from localhost ([127.0.0.1]:45392 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mYAor-0000GR-Is
	for submit <at> debbugs.gnu.org; Wed, 06 Oct 2021 13:35:05 -0400
Received: from lists.gnu.org ([209.51.188.17]:46068)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1mYAom-0000Fx-BJ
 for submit <at> debbugs.gnu.org; Wed, 06 Oct 2021 13:35:03 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:50480)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <juri@HIDDEN>) id 1mYAoe-0003ai-Ar
 for bug-gnu-emacs@HIDDEN; Wed, 06 Oct 2021 13:34:57 -0400
Received: from relay1-d.mail.gandi.net ([217.70.183.193]:29541)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <juri@HIDDEN>) id 1mYAoa-0001Px-QJ
 for bug-gnu-emacs@HIDDEN; Wed, 06 Oct 2021 13:34:52 -0400
Received: (Authenticated sender: juri@HIDDEN)
 by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 55EA2240012
 for <bug-gnu-emacs@HIDDEN>; Wed,  6 Oct 2021 17:34:43 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: Customizable window resizing
Organization: LINKOV.NET
Date: Wed, 06 Oct 2021 20:31:36 +0300
Message-ID: <87zgrm2h6v.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=217.70.183.193; envelope-from=juri@HIDDEN;
 helo=relay1-d.mail.gandi.net
X-Spam_score_int: -25
X-Spam_score: -2.6
X-Spam_bar: --
X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7,
 RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
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: -2.6 (--)

There are two ways how window resizing is currently hard-coded:

1. As discussed in
   https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg01627.html
   when temp-buffer-resize-mode is enabled, it's impossible
   to disable automatic window resizing of the Help buffer.

   Thanks to Martin, the patch in
   https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg01873.html
   allows customization when display-buffer-alist contains
   (window-height . nil)

2. As discussed in bug#45688, such commands as vc-log, vc-diff
   automatically resize the window, and the problem is that currently
   shrink-window-if-larger-than-buffer is used in these commands by default,
   but this behavior is hard-coded and can't be disabled by customization.
   A solution is to create a new hook like 'after-display-buffer-function'
   that by default will contain 'shrink-window-if-larger-than-buffer'.




Acknowledgement sent to Juri Linkov <juri@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#51062; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 13 Oct 2021 08:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.