[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, 05 Oct 2024 01:10:04 +1000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
martin rudalics <rudalics@gmx.at> writes:
>> I can't comment much cuz I'm not really familiar with these functions,
>> but one thing that pops out is would maintaining a dead windows table
>> take up lot of resources?
>
> No. It's already here via the variable 'window-dead-windows-table'.
I see
>> Also do you think a function like 'window-rebuild-tree' would be useful,
>> and it accepts the a tree like the output of window-tree-pixel-sizes.
>> rn this is possible by using the following arguments for
>> window--transpose-1:
>> (window--transpose-1 tree-you-want (below . left) t)
>> However this is not really obvious.
>>
>> I think it could be useful to add a wrapper with more obvious name
>
> You would have to tell me in more detail what 'window-rebuild-tree'
> would do.
Say window window-tree-pixel-sizes retruns:
((t (918 . 562) (#<window 7 on *scratch*> (442 . 562)) (#<window 23 on
*scratch*> (476 . 562))))
Then if you C-x 1, and then:
(window-rebuild-tree
'((t (918 . 562) (#<window 7 on *scratch*> (442 . 562)) (#<window 23 on
*scratch*> (476 . 562)))))
It should rebuild the whole thing to the orignal
> One thing 'window-tree-pixel-sizes' should then possibly do is to
> include the identity of internal windows so 'window-rebuild-tree'
> could resurrect them as well.
idk what you mean by this, is the identity not included in window object
itself, as in does refer argument not work with it?
also I found that when using tabs from tab-bar-mode, calling functions
like flip windows 2 times in a row will fuck up the tabs. I tested it
with orignal transpose-frame.el and it does not have this problem, mayeb
it is something to do with the C new patch refer argument code?
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/10/01
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/10/02
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/10/03
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/10/03
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/10/03
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/10/03
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/10/04
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/10/04
- Re: Add function to rotate/transpose all windows,
pranshu sharma <=
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/10/05
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/10/06
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/10/06
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/10/06
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/10/07
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/10/07
- Re: Add function to rotate/transpose all windows, Eli Zaretskii, 2024/10/03
- Re: Add function to rotate/transpose all windows, Juri Linkov, 2024/10/08
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/10/09
- Re: Add function to rotate/transpose all windows, Juri Linkov, 2024/10/09