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: Tue, 17 Dec 2024 09:40:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)

> 'split-window-preferred-function' is well suited for a completely different
> behavior.

There is another aspect that still can't be customized.
The choice of the window to split is hard-coded
in 'display-buffer-pop-up-window'.  It's either
the largest window or lru:

  ;; Attempt to split largest or least recently used window.
  (setq window (or (window--try-to-split-window
                    (get-largest-window frame t) alist)
                   (window--try-to-split-window
                    (get-lru-window frame t) alist)))

Maybe another option needed here as well?



reply via email to

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