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 19:01:19 +0300 Organization: LINKOV.NET Message-ID: <87wnmfk40w.fsf@mail.linkov.net> References: <87zgrm2h6v.fsf@mail.linkov.net> <63433373-a57b-a68a-8ccc-6d4a9192d9a4@gmx.at> <871r4oahjx.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="12249"; 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 18:18: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 1mb3Qs-0002zC-P8 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Oct 2021 18:18:14 +0200 Original-Received: from localhost ([::1]:59956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mb3Qq-0008Fw-Vp for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Oct 2021 12:18:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mb3Qg-000884-Qq for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 12:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53624) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mb3Qg-0006e1-GP for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 12:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mb3Qg-0004yS-9V for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 12:18: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 16:18: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.163422825319051 (code B ref 51062); Thu, 14 Oct 2021 16:18:02 +0000 Original-Received: (at 51062) by debbugs.gnu.org; 14 Oct 2021 16:17:33 +0000 Original-Received: from localhost ([127.0.0.1]:36930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mb3QC-0004xD-SU for submit@debbugs.gnu.org; Thu, 14 Oct 2021 12:17:33 -0400 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:42829) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mb3Q8-0004wc-QD for 51062@debbugs.gnu.org; Thu, 14 Oct 2021 12:17:31 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id D25A110000B; Thu, 14 Oct 2021 16:17:21 +0000 (UTC) In-Reply-To: (martin rudalics's message of "Thu, 14 Oct 2021 11:13:13 +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:217230 Archived-At: >> Strange, when I tested the patch that you sent to emacs-devel, >> it worked correctly. But after you applied the patch on master, >> it doesn't work. I'm trying to debug why (window-height . nil) >> has no effect on Help buffers. > > Indeed. I probably tried to optimize it before pushing. Should be > fixed now. Thanks, I confirm it's working now. >>> 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. >> >> This is a good idea to try. But not sure how this is possible to use in >> vc-run-delayed that is called when the buffer was already displayed long ago. > > 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.