GNU bug report logs - #63455
30.0.50; display-buffer-in-direction is always resizing

Previous Next

Package: emacs;

Reported by: Michael Heerdegen <michael_heerdegen <at> web.de>

Date: Fri, 12 May 2023 01:07:01 UTC

Severity: normal

Found in version 30.0.50

Full log


Message #56 received at 63455 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: martin rudalics <rudalics <at> gmx.at>
Cc: Michael Heerdegen <michael_heerdegen <at> web.de>, 63455 <at> debbugs.gnu.org,
 dgutov <at> yandex.ru
Subject: Re: bug#63455: 30.0.50; display-buffer-in-direction is always resizing
Date: Mon, 22 May 2023 21:03:58 +0300
>>> Almost (I had to make 'ediff-setup-windows-plain-compare' do what your
>>> patch does).  But as I mentioned earlier, you might want to replace
>>> 'fit-window-to-buffer' with something conditioned on whether the user
>>> has customized 'temp-buffer-resize-mode' - some users simply might not
>>> want their windows to auto-resize.
>>
>> I still don't understand the need to add a new function.
>
> The new function would serve, for example, in
> 'ediff-setup-windows-plain-compare'
>
>     (select-window (display-buffer-in-direction
>                     control-buffer
>                     '((direction . bottom)
>                       (window-height . fit-window-to-buffer))))
>
> to make sure the window is fit iff 'temp-buffer-resize-mode' is enabled.

Maybe a good name for the new function would be 'fit-window-to-temp-buffer'?




This bug report was last modified 2 years and 22 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.