emacs-devel
[Top][All Lists]
Advanced

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

Re: Functions transpose/rotate/flip windows


From: martin rudalics
Subject: Re: Functions transpose/rotate/flip windows
Date: Mon, 27 Jan 2025 10:19:27 +0100
User-agent: Mozilla Thunderbird

> Ok, incoming

I now added the documentation to the Elisp manual.  Please have a look.

>>> BTW what kind of transofmration would occur, if you had window tree like
>>>
>>> (nil W1 (t W2 W3 W4))
>>> and you transform it to (flip the tree):
>>> (nil W4 (t W3 W2 W1))
>>>
>>> Hard to imagine, could potetnially be another useful thing.
>>
>> Can you tell me the sequence of splits needed to get there?
>
> C-x {3 o 2 2}

Do you mean C-x 3 C-x o C-x 2 C-x 2?  This gets me a configuration
different from the one depicted below.

>
> Here is how the transformation would be
>
>   ___________      ___________
> |           |    |           |
> |     A     |    |     C     |
> |___________| -> |___________|
> |     |     |    |     |     |
> |  B  |  C  |    |  B  |  A  |
> |_____|_____|    |_____|_____|
>
> IMO this could be useful in the case you have many windows, but are only
> really working on 2.  Maybe a good name would be flip-windows-cyclicial?
>
> Since we already have 'window--transpose-1' that already does the fun
> stuff, we might as well use it to maximise functionality

You mean to swap A and C only?

martin



reply via email to

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