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:44:04 +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.
>> 
>> 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
>
> AFAIU, this is an incompatible change in behavior, with no way for
> users who want the old behavior to get it back.
>
> If so, please augment the change by a user option which controls
> whether windows are split as they were before or according to the new
> algorithm.  We can then discuss whether the default will be the old
> behavior or the new one.

There is already the existing option 'split-window-preferred-function'.
It could provide a choice of more values to select a predefined
behavior.



reply via email to

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