emacs-devel
[Top][All Lists]
Advanced

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

Re: master 6a2ee981c3: Add new functions for splitting the root window


From: Yuri Khan
Subject: Re: master 6a2ee981c3: Add new functions for splitting the root window
Date: Wed, 14 Sep 2022 00:09:19 +0700

On Tue, 13 Sept 2022 at 23:33, Gregory Heytings <gregory@heytings.org> wrote:

> > It doesn’t even work (correctly).
> >
> > C-u -4 C-x 2
> >
> > ⇒ the resulting bottom window displays slightly more than two lines.
> >
> > (Disclaimer: I’m using a non-nil line-spacing; but if I set it to nil,
> > then the new window displays slightly less than three lines.)
>
> That's the expected behavior, because the mode line is part of the height
> of a window.  So with emacs -Q, C-u -4 C-x 2 creates a window that is 4
> lines tall, 3 lines for the window body and 1 line for the mode line.

Even so, surely the more useful behavior would be to create a window
that is exactly 1 modeline + 3 actual lines’ heights taking the
buffer’s remapped default face, line-spacing, and whatever else
affects its display, into account, rather than just 4 abstract lines’
heights?



reply via email to

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