[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Prefer to split along the longest edge
From: |
Eli Zaretskii |
Subject: |
Re: Prefer to split along the longest edge |
Date: |
Mon, 16 Dec 2024 21:07:35 +0200 |
> From: Juri Linkov <juri@linkov.net>
> Cc: Nicolas Desprès <nicolas.despres@gmail.com>,
> emacs-devel@gnu.org
> Date: Mon, 16 Dec 2024 19:44:04 +0200
>
> >> 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.
We cannot ask users to write a function in order to get back old
behavior. Customizations via functions is not user-friendly enough
for such simple tasks.
- Re: Prefer to split along the longest edge, (continued)
- Re: Prefer to split along the longest edge, Juri Linkov, 2024/12/14
- Re: Prefer to split along the longest edge, Nicolas Desprès, 2024/12/14
- Re: Prefer to split along the longest edge, Juri Linkov, 2024/12/15
- Re: Prefer to split along the longest edge, Nicolas Desprès, 2024/12/15
- Re: Prefer to split along the longest edge, Juri Linkov, 2024/12/16
- Re: Prefer to split along the longest edge, Nicolas Desprès, 2024/12/16
- Re: Prefer to split along the longest edge, Eli Zaretskii, 2024/12/16
- Re: Prefer to split along the longest edge, Juri Linkov, 2024/12/16
- Re: Prefer to split along the longest edge,
Eli Zaretskii <=
- Re: Prefer to split along the longest edge, Juri Linkov, 2024/12/16
- Re: Prefer to split along the longest edge, Eli Zaretskii, 2024/12/16
- Re: Prefer to split along the longest edge, Nicolas Desprès, 2024/12/17
- Re: Prefer to split along the longest edge, Juri Linkov, 2024/12/17
- Re: Prefer to split along the longest edge, Nicolas Desprès, 2024/12/17
- Re: Prefer to split along the longest edge, martin rudalics, 2024/12/17
- Re: Prefer to split along the longest edge, Nicolas Desprès, 2024/12/17
- Re: Prefer to split along the longest edge, Eli Zaretskii, 2024/12/17
- Re: Prefer to split along the longest edge, martin rudalics, 2024/12/18
- Re: Prefer to split along the longest edge, Eli Zaretskii, 2024/12/18