From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#63455: 30.0.50; display-buffer-in-direction is always resizing Date: Fri, 12 May 2023 03:06:07 +0200 Message-ID: <87fs82z7cw.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31907"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rudalics@gmx.at, juri@linkov.net, dgutov@yandex.ru To: 63455@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 12 03:07:24 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 1pxHFj-00089J-Nt for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 May 2023 03:07:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxHFU-0005W8-6w; Thu, 11 May 2023 21:07:08 -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 1pxHFS-0005Vq-Dj for bug-gnu-emacs@gnu.org; Thu, 11 May 2023 21:07:06 -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 1pxHFS-0006Nz-4v for bug-gnu-emacs@gnu.org; Thu, 11 May 2023 21:07:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pxHFO-0006ca-3o; Thu, 11 May 2023 21:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: rudalics@gmx.at, juri@linkov.net, dgutov@yandex.ru, bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 May 2023 01:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63455 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: rudalics@gmx.at, juri@linkov.net, dgutov@yandex.ru Original-Received: via spool by submit@debbugs.gnu.org id=B.168385357925390 (code B ref -1); Fri, 12 May 2023 01:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 May 2023 01:06:19 +0000 Original-Received: from localhost ([127.0.0.1]:53667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxHEh-0006bS-3k for submit@debbugs.gnu.org; Thu, 11 May 2023 21:06:19 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:43552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxHEf-0006bL-Eh for submit@debbugs.gnu.org; Thu, 11 May 2023 21:06:18 -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 1pxHEf-0005Sf-5K for bug-gnu-emacs@gnu.org; Thu, 11 May 2023 21:06:17 -0400 Original-Received: from mout.web.de ([217.72.192.78]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pxHEZ-0006F4-LV for bug-gnu-emacs@gnu.org; Thu, 11 May 2023 21:06:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1683853568; i=michael_heerdegen@web.de; bh=KXLiJprhzhB36DIdmdHFiBXt0tblk8X1i1xQV0ZsrxI=; h=X-UI-Sender-Class:From:To:Subject:Date; b=ppJEA9fCXPKzBSFrj7CDuvuCOImF64RzkC3iH17bIbkNnI88cBLwLhFar/igkdpyz 0RfDvTostj6L8zXxEx3V7E1qZK2gjaUdBUcC43QsYB3um1g+Troor1ymYCuEccrtHG gFeZtWPFKWtfWOxB/86HRaKTiql/J0xkIFTDSaRr3UGPtlfnt/pFdpMfYG+VmdGz+y cbWDcQ87WrAR/gdxAk+sChyPCtOjAoobQcUJMKUEvuYsfNZA55GSpcIieqkHBpVhJG FUEH4sPNNkGonZXiO07h1bXQ86vUI9j14UUWY7N7dc5E2Ob3TSOrC6w+wKkO2waEtf PEFmgn7dHXNOQ== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from drachen.dragon ([178.14.74.62]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MNfU1-1pZPsq3mJP-00P8Aw for ; Fri, 12 May 2023 03:06:07 +0200 X-Provags-ID: V03:K1:C7yocT0fxB0Bqdzn36Y3A6KD0nbGOWpLLdaGkAnU3LyOZEUmJk+ 3DvllEEkJqilM3HlX+oy/qzLIEtqKQNVTg1acUfSIqfo5zeb+yhMH0SWAnxuzYv+7tqWQM6 9Eg46t74Ms9CtUmZ0fDpE17KYziVWLfNNL5SHdUmhc7X9kSj/IwlVD2PNDjM56PBkDRD+8y cftqduo0BA+ElYAy1KFBw== UI-OutboundReport: notjunk:1;M01:P0:6CeaGeO31I4=;zzUCIE0/f0HWNGoM1oOWVKaHsln F3iH9WJ6zvmk3mvg8PpYnNAEyUQtcTrji1aDf/wUZ/UPI547yEyDXhzG16baZDNbCbbafjqKu XuLnTxmYhx8fom24XvAkC95dRuR0bkAGF/f5IZIigY64DSGZ2dERCliKMKOaTYs3NVw3n1603 Aes0pYarLWv23vC5ed4y4G4Nt1OfWw6JRHrTcmJvyOLl9yNEagV0cg8m0mk0kEKlCatT+s1LQ xNjP8l72aCv/i3RnBgPzOO/HZ4IH1v4lHsGbntS7PHwGiEBmNkrS9r9+YYwxtHjGz3Fw0222N ialmYEL+6RPe+Ld/HN4d99e7ukEEFTCLm0hAjlmi1MHSvxIy8MgRpDvEPdyD1Y7jQ2EBtreKd J4VwmqFflkZkbT6SI4vsd9LQDe2hH7AakIuzLYlIqOx7YGAWlLxWXqgEhLN6XnEtdXyn8/moH 1OYCKYpmmTgKy7o2JtZs/AI37Sthbe04RjmGuW44fRrf3udf6VyIOq+Z60/OK0ho5ib9gJoMq dfrlJWfbBt/8SkQre9cvZ3KS+3+DuvbJSxADEuTijrN3vfc4HCyzlDzVRieMES0R3guY11YbP q9RI8YVjuzN/14psXG96SBO5ZY216zTPeb5BL862U2etFhEw9GF8yPnZTM3oLlFMbj0s0F9PY oJfG84VLsqSN3n3933L+/hKSXOIb3WtffXohTFVwy+AbRiBKcfzrRDcBpxfxVxq6a1zkennDN f9evfBOZ8P7W84G3Inh4koek6bFnuGoQdymgowTe9gGUDtDXp+QsWlFcNe3+U/tsY8NvmJbk Received-SPF: pass client-ip=217.72.192.78; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261598 Archived-At: X-Debbugs-CC: rudalics@gmx.at, juri@linkov.net, dgutov@yandex.ru Hello, (info "(elisp) Buffer Display Action Alists") says near the end: | If no =E2=80=98window-height=E2=80=99, =E2=80=98window-width=E2=80=99 = or =E2=80=98window-size=E2=80=99 entry was | specified, the window may still be resized automatically when the buffer | is temporary and =E2=80=98temp-buffer-resize-mode=E2=80=99 has been enabl= ed, *note | Temporary Displays::. In that case, the CDR of a =E2=80=98window-height= =E2=80=99, | =E2=80=98window-width=E2=80=99 or =E2=80=98window-size=E2=80=99 entry can= be used to inhibit or override | the default behavior of =E2=80=98temp-buffer-resize-mode=E2=80=99 for spe= cific buffers | or invocations of =E2=80=98display-buffer=E2=80=99. OTOH, the action `display-buffer-in-direction' _always_ resizes the window no matter what buffer is current. Try e.g. #+begin_src emacs-lisp (display-buffer (current-buffer) '((display-buffer-in-direction) . ((direction . top)))) #+end_src from any window or buffer. This is handled by this part of the implementation of `display-buffer-in-direction': #+begin_src emacs-lisp (setq alist (append alist `(,(if temp-buffer-resize-mode '(window-height . resize-temp-buffer-window) '(window-height . fit-window-to-buffer)) ,(when temp-buffer-resize-mode '(preserve-size . (nil . t)))))) #+end_src Looking at that it doesn't seem to be intended as a general behavior, and the behavior is not a good default IMO - even if it can be suppressed by adding a (window-height . nil) entry to the `display-buffer' call. I guess that Bug#45945 could be a symptom of this problem. TIA, Michael.