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: Pranshu Sharma
Subject: Re: Functions transpose/rotate/flip windows
Date: Fri, 31 Jan 2025 00:42:37 +1000
User-agent: Gnus/5.13 (Gnus v5.13)

martin rudalics <rudalics@gmx.at> writes:

>>> So you mean the new function should behave as 'rotate-windows' with A
>>> and C changing locations.  Right?
>>
>> These 2 functions are completely independent. One "rotates" the
>> cyclic ordering and new one flips it.
>
> Nobody will be able to tell what the cyclic ordering is from just
> looking at an arbitrary frame.  Assuming I do, then rotating it seems
> obvious.  But what means flipping it?  Take four live windows A, B, C
> and D in that order.  How would flipping it change that order?

I don't think you need to tell what it is to use it, nobody can tell
what cyclic ordering is but still has pretty good idea where
'other-window' will take them.  The function works well with 3 or 4
windows.  Even if it's not very useful by it's self, I think it's great
combo to use with rotate-windows.

>> So if you call new command twice you are back to where you started (flip + 
>> flip)
>
> But not if I select another window in between?

That shouldn't change anything

To avoid confusion, I just implemented the function, test it out while
using different distigunsible windows.  I factored out the common code
in rotate-windows.

Attachment: rev.diff
Description: Text Data


-- 
Pranshu Sharma <https://p.bauherren.ovh>

reply via email to

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