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: Thu, 19 Dec 2024 09:06:02 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)

>> Sorry, I lost you: what does display-buffer-pop-up-window have to do
>> with the subject of this thread?  I'm probably missing something.
>
> 'display-buffer-pop-up-window' calls 'window--try-to-split-window' which
> calls 'split-window-preferred-function' whose default value is
> 'split-window-sensibly' - the function whose behavior we are talking
> about here.  Presently, this is the only way 'split-window-sensibly'
> gets called in the Emacs sources.

Maybe instead of adding a new option 'split-window-preferred-direction',
another new option would be more general than 'split-window-preferred-function',
and will specify a function that defines a window to split and splits it:
either vertically or horizontally.



reply via email to

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