emacs-devel
[Top][All Lists]
Advanced

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

Re: Add function to rotate/transpose all windows


From: martin rudalics
Subject: Re: Add function to rotate/transpose all windows
Date: Sat, 28 Sep 2024 11:26:50 +0200
User-agent: Mozilla Thunderbird

> I managed to make remake the transpose frame function without using
> reseruct window, and instead used swap-window-states.

I don't know 'swap-window-states' but if it uses 'window-state-get' and
'window-state-put' (which I happen to know quite intimately) the result
won't be any better than with the concept you cited earlier.

> However one thing I'm stuck with it getting it to work with root C-x 2
> C-x 3 kinda splits (basiclly where (listp (caddar (window-tree))) is
> true).  However if you start with no windows, split window once, go to
> split window, they you can go crazy with splitting in any direction
> (even the C-x 2 C-x 3) and it will work when you call transpose-frame.

I don't understand what you mean here.

> This also different from the transpose-windows.el in that it does not
> start on a blank slate(transpose-windows.el calls delete-other-windows
> in the transpose-frame-set-arrangement), so transposing partial window
> trees much easier but I haven't implimented it yet.

Whatever you do someone has to delete all "other" windows and start with
one specific live window that you subsequently split.

Try with the 'split-window' I posted earlier so you don't have to care
about buffers, decorations and the rest and can concentrate on geometry.

martin



reply via email to

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