GNU bug report logs - #45945
28.0.50; Feature request: Some kind of 'max-window-height' parameter for display-buffer-in-direction

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dgutov <at> yandex.ru>

Date: Mon, 18 Jan 2021 01:56:02 UTC

Severity: wishlist

Found in version 28.0.50

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


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

From: Juri Linkov <juri <at> linkov.net>
To: 45945 <at> debbugs.gnu.org
Cc: rudalics <at> gmx.at, dgutov <at> yandex.ru
Subject: Re: bug#45945: 28.0.50; Feature request: Some kind of
 'max-window-height' parameter for display-buffer-in-direction
Date: Tue, 19 Jan 2021 19:41:10 +0200
>> It will be helpful to limit the height of the resulting window (either
>> in lines or in percentages of the parent window height). If the split has
>> been performed, of course.
>
> Looks like I've managed that with 'window-height' alist entry set to
> a function that wraps fit-window-to-buffer.
>
> Commit 4ca808ee7a in master.

Indeed, maybe this could be customizable.  For example,
like there is the customizable variable display-buffer-alist,
a new customizable variable with a name like post-display-buffer-functions
could be used to add/remove such hooks as fit-window-to-buffer.
like temp-buffer-resize-mode does.  But this should a more general feature.




This bug report was last modified 4 years and 180 days ago.

Previous Next


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