emacs-devel
[Top][All Lists]
Advanced

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

Re: Prefer to split along the longest edge


From: Juri Linkov
Subject: Re: Prefer to split along the longest edge
Date: Mon, 16 Dec 2024 19:32:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)

> I wrote a new patch that always fallback on vertical split, and I got rid
> of the weird (width > 80) condition since split-width-threshold already
> does it.
>
> The result is a simpler patch that works perfectly.

Thanks, a new patch is much better.

> It basically does that:
>
> if width > height:
>    try to split horizontally, then try to split vertically
> else
>    try to split vertically, then try to split horizontally
> fallback to vertical split

This makes sense, so Cc-ing Martin to confirm
if this is the right thing to do.



reply via email to

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