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#63455: 30.0.50; display-buffer-in-direction is always resizing Date: Tue, 16 May 2023 19:35:59 +0300 Organization: LINKOV.NET Message-ID: <864joc4l80.fsf@mail.linkov.net> References: <87fs82z7cw.fsf@web.de> <77edb1db-13ad-fa1d-d1fc-7a23f0b6240d@gmx.at> <86zg69lb6v.fsf@mail.linkov.net> <8f609c16-2302-2dca-0c5a-b740da6e1686@gmx.at> <86ttwdjzpe.fsf@mail.linkov.net> <19e3fde1-f2d1-2383-8433-1e63bf5d57a7@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7428"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: Michael Heerdegen , 63455@debbugs.gnu.org, dgutov@yandex.ru To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 16 18:53:30 2023 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 1pyxvV-0001nG-JK for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 May 2023 18:53:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pyxvB-00041N-H5; Tue, 16 May 2023 12:53:09 -0400 Original-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 ) id 1pyxv5-00040M-KJ for bug-gnu-emacs@gnu.org; Tue, 16 May 2023 12:53:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pyxv5-0008IR-CH for bug-gnu-emacs@gnu.org; Tue, 16 May 2023 12:53:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pyxv5-0007Am-8W for bug-gnu-emacs@gnu.org; Tue, 16 May 2023 12:53:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 May 2023 16:53:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63455 X-GNU-PR-Package: emacs Original-Received: via spool by 63455-submit@debbugs.gnu.org id=B63455.168425593127473 (code B ref 63455); Tue, 16 May 2023 16:53:03 +0000 Original-Received: (at 63455) by debbugs.gnu.org; 16 May 2023 16:52:11 +0000 Original-Received: from localhost ([127.0.0.1]:47210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyxuF-000792-Ax for submit@debbugs.gnu.org; Tue, 16 May 2023 12:52:11 -0400 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:60299) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyxuB-00078P-WF for 63455@debbugs.gnu.org; Tue, 16 May 2023 12:52:09 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 86E1B1BF20D; Tue, 16 May 2023 16:51:58 +0000 (UTC) In-Reply-To: <19e3fde1-f2d1-2383-8433-1e63bf5d57a7@gmx.at> (martin rudalics's message of "Tue, 16 May 2023 09:19:28 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261796 Archived-At: > We could write a function similar to 'completions--fit-window-to-buffer' > (do you know what the &rest _ args there are used for?) like Looks like the &rest _ args is defensive programming. > (defun maybe-fit-window-to-buffer (&optional window) > "Fit WINDOW to buffer if 'temp-buffer-resize-mode' is on." > (when temp-buffer-resize-mode > (resize-temp-buffer-window window))) > > and use that in all occasions where we want to resize a window outside > the scope of 'with-temp-buffer-window' when 'temp-buffer-resize-mode' > was turned on by the user (leaving alone the behavior of the earlier > mentioned 're-builder' etc. which apparently work without complaints). This helper could be useful. Maybe it should be added when such need arises.