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: Mon, 15 May 2023 20:01:49 +0300 Organization: LINKOV.NET Message-ID: <86ttwdjzpe.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29871"; 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 Mon May 15 19:06:32 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 1pybeZ-0007aa-HC for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 May 2023 19:06:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pybe9-0001Vm-1C; Mon, 15 May 2023 13:06:05 -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 1pybe6-0001Ny-Uk for bug-gnu-emacs@gnu.org; Mon, 15 May 2023 13:06:02 -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 1pybe6-0007ID-Le for bug-gnu-emacs@gnu.org; Mon, 15 May 2023 13:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pybe6-0005uj-GG for bug-gnu-emacs@gnu.org; Mon, 15 May 2023 13:06: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: Mon, 15 May 2023 17:06:02 +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.168417033722683 (code B ref 63455); Mon, 15 May 2023 17:06:02 +0000 Original-Received: (at 63455) by debbugs.gnu.org; 15 May 2023 17:05:37 +0000 Original-Received: from localhost ([127.0.0.1]:44257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pybdh-0005tn-EA for submit@debbugs.gnu.org; Mon, 15 May 2023 13:05:37 -0400 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:59761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pybdf-0005tF-Ft for 63455@debbugs.gnu.org; Mon, 15 May 2023 13:05:36 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id A300F60006; Mon, 15 May 2023 17:05:27 +0000 (UTC) In-Reply-To: <8f609c16-2302-2dca-0c5a-b740da6e1686@gmx.at> (martin rudalics's message of "Sat, 13 May 2023 10:56:16 +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:261748 Archived-At: > - When the user customizes 'display-buffer-alist' to call another > display action, say 'display-buffer-below-selected', the window will > not be resized. Try without and with the first form evaluated: > > (setq display-buffer-alist > '(("*foo*" display-buffer-below-selected))) > > (pop-to-buffer (get-buffer-create "*foo*") > '(display-buffer--maybe-at-bottom)) I tried with your patch, and it works correctly. I guess this change is for master, not the release branch? > We could add a buffer-local variable say 'temporary' which the temporary > buffer functions would set and 'display-buffer' would always obey in > conjunction with 'temp-buffer-resize-mode'. Then a program or the user > could set or reset that variable to obtain the desired behavior with > plain 'display-buffer' calls as well. Whether such an option is clean > is another question. Maybe temporary buffers should resize windows by default? Then such an option should be able to override the default behavior.