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: Tue, 21 Jan 2025 05:59:08 +1000
User-agent: Gnus/5.13 (Gnus v5.13)

martin rudalics <rudalics@gmx.at> writes:

>> I think we could still change a name if we wanted to now, but the
>> problem with rotate-buffers-in-windows is that it might imply the
>> wrong this technically, that windows are staying the same but buffers
>> being swapped instead. I can think of a couple of frustrating
>> scinarios, for those who didn't read docstring.
>
> Technically you're right - we put windows in place of others.  So let's
> leave it alone.
>
>> Also for the manual, did you say you want the ASCII that Juri sent or
>> my XL ASCII?
>
> I prefer Juri's because yours might be too large for the manual.

That's what she said

> And please use one --> as Juri does here
>
>
>      +-------+     +-------+
>      |   A   |     | B |   |
>      |-------| ->  |---| A |
>      | B | C |     | C |   |
>      +-------+     +-------+
>
> (but "-->" looks better than "->") instead of the two
>
> -->
> -->
>
> from your earlier drawings as for example in

Ok, I just did that for symettry.

> Personally I prefer "_" over "-" for horizontal edges because then I
> don't need the "+" for corners but I'll leave that to your taste.


|-------|     ---------
|   A   |     |   A   |
|-------| OR  |-------|
| B | C |     | B | C |
|_______|     |_______|

IMO these both look a bit silly (right one lookslike bed. left one looks
like a house/owl/optimus prime face), this is biggest plus with using plus.


Transpose

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

Rotate clockwise

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

anticlockwise

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

Flip horizontal

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

Flip verticlly

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

Rotate

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

rotate back

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

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.

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



reply via email to

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