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: Juri Linkov
Subject: Re: Add function to rotate/transpose all windows
Date: Thu, 05 Dec 2024 19:48:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)

>> A better name would be 'rotate-window-states'
>> like in 'window-swap-states'.
>
> I agree with this, although it could potentially be confusing for
> people thinking that this internally uses window-swap-states, impling
> the window-tree remains unchanged, which is not correct.  I'll consider
> this when writing the docstring.

If it will rotate window identities, then a better name is 'rotate-windows'
for this transformation:

+-----+     +-----+
|  A  |     |  B  |
|-----| ->  |-----|
|B | C|     |C | A|
+-----+     +-----+

When rotating the whole frameset, then 'rotate-window-layout':

+-----+     +-----+
|  A  |     |B |  |
|-----| ->  |--| A|
|B | C|     |C |  |
+-----+     +-----+

> what would you suggest should be the name for
> "rotate-window-layout-reverse".

'rotate-window-layout-anticlockwise':

+-----+     +-----+
|  A  |     |  | C|
|-----| ->  |A |--|
|B | C|     |  | B|
+-----+     +-----+

and 'rotate-window-layout-clockwise':

+-----+     +-----+
|  A  |     |B |  |
|-----| ->  |--| A|
|B | C|     |C |  |
+-----+     +-----+



reply via email to

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