GNU bug report logs - #14825
24.3.50; split-window-below miscounts window lines

Previous Next

Package: emacs;

Reported by: Eli Zaretskii <eliz <at> gnu.org>

Date: Mon, 8 Jul 2013 17:54:02 UTC

Severity: normal

Found in version 24.3.50

Full log


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>, 14825 <at> debbugs.gnu.org
Subject: bug#14825: 24.3.50; split-window-below miscounts window lines
Date: Tue, 15 Oct 2019 19:38:15 +0200
[Message part 1 (text/plain, inline)]
> To reproduce:
>
>   emacs -Q
>   Click S-mouse-1 and select "Change Buffer Font"
>   Under "Size" type 6 and click OK
>
> You should now have *scratch* buffer displayed with a very small font
>
>   Hit RET 5 times to have a 10-line buffer
>   C-x 2
>   C-u 10 C-x ^
>
> You should now have 2 windows displaying *scratch*, the lower one about
> 10 lines tall.
>
>   C-x o
>   C-x 2
>    => Window #<window 0x3817df0 on *scratch*> too small for splitting
>
> But that window is 10 lines tall, while the minimum window height is 4
> lines, so I would expect Emacs to honor the request and produce 2
> windows.  And indeed, if I do the same with a 10-line window without
> making the font smaller, the window is split.

I attached a patch that tries to fix this scenario.  Please have a
look.

Thanks, martin
[split-window-below.diffs (text/plain, attachment)]

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

Previous Next


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