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: Pranshu Sharma
Subject: Re: Add function to rotate/transpose all windows
Date: Sun, 01 Dec 2024 14:13:56 +1000
User-agent: Gnus/5.13 (Gnus v5.13)

martin rudalics <rudalics@gmx.at> writes:
>
> Hmmm...  It doesn't call 'window-swap-states'.  OTOH you're right - the
> windows must be swapped too.  It's like rotating but the window layout
> remains visually unchanged.
>

Think of it like a based version of other-window, where instead of going
to the other windows you stay where you are but get the other windows to
readjust.

It's easier to understand the function if you think of it as it uses
window-swap-states, but what it does is that is destroyes the windows,
and rebuilds then with window--transpose-1 to avoid the problems you
described with window-swap-states.

The reason it was called cycle windows is because to it, windows are a
circular linear list instead of a tree, and simply cycles that list.
rotate-window-layout would be a better name as RMS suggested

I just added support for cycling in revese direction, I'll send src when
I reply to other email(soon, just need to do docstrings).



reply via email to

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