bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55169: Can't combine window-min-height with window-height


From: Lars Ingebrigtsen
Subject: bug#55169: Can't combine window-min-height with window-height
Date: Fri, 29 Apr 2022 12:27:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Juri Linkov <juri@linkov.net> writes:

> Shouldn't the order of processing these parameters be rather like this:
>
> 1. first set window-height with fit-window-to-buffer;
> 2. then check if the constraint of window-min-height is fulfilled,
>    and shrink too high window.

The original example looks odd to me, but I may just be misunderstanding
the window machinery (not for the first time).

But:

(display-buffer-below-selected
 (current-buffer)
 '((window-min-height . 10)
   (window-height . fit-window-to-buffer)))

I'd expect that to work as you describe (or perhaps with the alist in
opposite order), and it doesn't.  Perhaps Martin has some comments;
added to the CCs.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]