[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: |
Sat, 19 Oct 2024 11:45:02 +1000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
martin rudalics <rudalics@gmx.at> writes:
> Note that 'flip-windows-horizontally' binds "windows" instead of
> "window". And please don't cascade ifs - the appropriate Lisp idiom
> here is 'cond' as in
>
Ah, I see
>
> BTW does it work if FRAME-OR-WINDOW is an internal window? In the doc
> string you say that it must be a "live frame or window" but 'windowp'
> returns t for internal windows too.
>
It works if frame-or-window is an internal window, I changed 'live' with
'valid'
>> I added subtree speicfic options to the docstring(before they were not
>> there), and made changes to window--transpose. However it is weird if
>> you C-u M-x transpose-windows C-x z multiple times, you get weired
>> result since the parent window changes, nothing I can do about that,
>> just how windows work.
>
> If you optionally can supply REFER as a cons where the car is the
> previous (currently deleted) parent and the cdr the previous (currently
> deleted) leaf window (you have to keep pointers to all of them just in
> case the collector runs in between), we can easily fix that. Just that
> 'window-tree-pixel-sizes' would have to report the old parent window too
> (in front of the flag telling whether it constitutes a horizontal or
> vertical split, probably). It's easy to do, believe me.
>
I don't understand
>
> What about adding it to windmove.el? Eli or Juri will decide.
>
I agree with Eli it should autoloaded, but every windmove function seems
to be focused on something to do with directional windows, these
functions would be a bit out of place.
How does a new autoloaded window-util.el sound? if you think its a good
idea I can also spend some time making an ace-window like window jump
function to make window-util a bit more complete. Which instead of
acewin puts a letter or number in the window's modeline instead, and if
you enter that letter/number you go to that window (the idea is to save
letter in a window-parameter, and use that in modeline)
- Re: Add function to rotate/transpose all windows, (continued)
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/10/10
- Re: Add function to rotate/transpose all windows, Juri Linkov, 2024/10/10
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/10/13
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/10/13
- Re: Add function to rotate/transpose all windows, Juri Linkov, 2024/10/14
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/10/15
- Re: Add function to rotate/transpose all windows, Juri Linkov, 2024/10/15
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/10/18
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/10/18
- Re: Add function to rotate/transpose all windows, Eli Zaretskii, 2024/10/18
- Re: Add function to rotate/transpose all windows,
pranshu sharma <=
- Re: Add function to rotate/transpose all windows, Eli Zaretskii, 2024/10/19
- Re: Add function to rotate/transpose all windows, Juri Linkov, 2024/10/19
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/10/19
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/10/20
- Re: Add function to rotate/transpose all windows, Pranshu Sharma, 2024/10/20
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/10/20
- Re: Add function to rotate/transpose all windows, Pranshu Sharma, 2024/10/21
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/10/21
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/10/21
- Re: Add function to rotate/transpose all windows, Pranshu Sharma, 2024/10/21