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: Thu, 14 Oct 2021 20:14:58 +0300 Organization: LINKOV.NET Message-ID: <87a6jbil4d.fsf@mail.linkov.net> References: <87zgrm2h6v.fsf@mail.linkov.net> <63433373-a57b-a68a-8ccc-6d4a9192d9a4@gmx.at> <871r4oahjx.fsf@mail.linkov.net> <87wnmfk40w.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="27987"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 51062@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 14 19:16:15 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 1mb4L0-00072k-2H for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Oct 2021 19:16:14 +0200 Original-Received: from localhost ([::1]:43738 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mb4Kx-00005j-Dd for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Oct 2021 13:16:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mb4Ko-0008W0-TC for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 13:16:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53687) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mb4Ko-00036D-Jv for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 13:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mb4Ko-0006Sc-Cg for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 13:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Oct 2021 17:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51062 X-GNU-PR-Package: emacs Original-Received: via spool by 51062-submit@debbugs.gnu.org id=B51062.163423174124797 (code B ref 51062); Thu, 14 Oct 2021 17:16:02 +0000 Original-Received: (at 51062) by debbugs.gnu.org; 14 Oct 2021 17:15:41 +0000 Original-Received: from localhost ([127.0.0.1]:37000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mb4KT-0006Rs-4G for submit@debbugs.gnu.org; Thu, 14 Oct 2021 13:15:41 -0400 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:50347) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mb4KP-0006Rb-Uy for 51062@debbugs.gnu.org; Thu, 14 Oct 2021 13:15:40 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id EE7E620005; Thu, 14 Oct 2021 17:15:30 +0000 (UTC) In-Reply-To: (martin rudalics's message of "Thu, 14 Oct 2021 19:01:43 +0200") 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:217242 Archived-At: >>> The problem is rather that 'display-buffer' wasn't used in the first >>> place to show the buffer. Two things we could try to cover buffers that >>> are shown via 'set-window-buffer' are >>> >>> - Invent a new buffer-local variable, say 'inhibit-temp-buffer-resize' >>> with the obvious meaning. >>> >>> - Invent a new window parameter 'inhibit-temp-buffer-resize' with the >>> obvious meaning. >> >> Earlier I proposed to add a new hook whose default value contains >> shrink-window-if-larger-than-buffer, so it can easily be removed from the hook. > > What was that hook called? I think we first have to decide whether we > want to inhibit such shrinks and fits for any display operation or only > those administrated by 'display-buffer'. Then we'd either install that > inhibiting thing via 'window--display-buffer' (where we work on alist so > we can decide who overrides whom) or directly in 'fit-window-to-buffer' > (where we cannot discriminate any more whether an application very > urgently wants to impose its behavior and we always rely on the user's > setting). This hook was called 'after-display-buffer-function' in https://debbugs.gnu.org/45688#137