From: Juri Linkov <juri@linkov.net>
To: 45945@debbugs.gnu.org
Cc: dgutov@yandex.ru
Subject: 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 [thread overview]
Message-ID: <87bldlf9zt.fsf@mail.linkov.net> (raw)
In-Reply-To: <4354ad18-3629-da09-8a0b-d810d5abccc6@yandex.ru> (Dmitry Gutov's message of "Tue, 19 Jan 2021 03:11:50 +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.
next prev parent reply other threads:[~2021-01-19 17:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-18 1:55 bug#45945: 28.0.50; Feature request: Some kind of 'max-window-height' parameter for display-buffer-in-direction Dmitry Gutov
2021-01-19 1:11 ` Dmitry Gutov
2021-01-19 17:41 ` Juri Linkov [this message]
2021-01-19 19:31 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bldlf9zt.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=45945@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).