From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#51062: Customizable window resizing Date: Wed, 06 Oct 2021 20:31:36 +0300 Organization: LINKOV.NET Message-ID: <87zgrm2h6v.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37305"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (x86_64-pc-linux-gnu) To: 51062@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 06 19:54:05 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 1mYB7F-0009Uz-FC for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Oct 2021 19:54:05 +0200 Original-Received: from localhost ([::1]:55444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYB7E-0005ww-6Y for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Oct 2021 13:54:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYApm-0004Oh-BZ for bug-gnu-emacs@gnu.org; Wed, 06 Oct 2021 13:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33846) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYApm-0005f4-3E for bug-gnu-emacs@gnu.org; Wed, 06 Oct 2021 13:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mYApl-0000Ht-TQ for bug-gnu-emacs@gnu.org; Wed, 06 Oct 2021 13:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Oct 2021 17:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51062 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16335417051030 (code B ref -1); Wed, 06 Oct 2021 17:36:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Oct 2021 17:35:05 +0000 Original-Received: from localhost ([127.0.0.1]:45392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYAor-0000GR-Is for submit@debbugs.gnu.org; Wed, 06 Oct 2021 13:35:05 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:46068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYAom-0000Fx-BJ for submit@debbugs.gnu.org; Wed, 06 Oct 2021 13:35:03 -0400 Original-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 ) id 1mYAoe-0003ai-Ar for bug-gnu-emacs@gnu.org; Wed, 06 Oct 2021 13:34:57 -0400 Original-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 ) id 1mYAoa-0001Px-QJ for bug-gnu-emacs@gnu.org; Wed, 06 Oct 2021 13:34:52 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 55EA2240012 for ; Wed, 6 Oct 2021 17:34:43 +0000 (UTC) Received-SPF: pass client-ip=217.70.183.193; envelope-from=juri@linkov.net; 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-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:216574 Archived-At: 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'.