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: martin rudalics
Subject: Re: Add function to rotate/transpose all windows
Date: Thu, 3 Oct 2024 16:18:00 +0200
User-agent: Mozilla Thunderbird

>> BTW, you could have a look at the
>> function 'window-swap-states'.  IIUC it should then be rewritten in
>> terms of the 'flip-windows-...' functions to get rid of window states
>> and the overlay rigmarole.
>
> Hmm, the only way I can imagine using the flip thing is modifying window
> tree to swap 2 windows in the subtree, and then set conf to (below
> . left) and do-not-convert-size to nil.  This will just rebuild the
> whole window tree.

I thought when the two windows are neighbors (which they often enough
are) we could flip them.  But I think the solution is to (1) add for
each live window its number in 'window-state-get' (we need a function
'window-number' for that) and (2) in 'window-state-put', whenever we
split a window, try to find out whether a window with the respective
number is in 'window-dead-windows-table' and reuse it in that case.

> I sent the form to assign@gnu.org, 15 days ago, still waiting for reply.
> Does it normally take this long?

It can take longer.  Don't worry.  They'll reply before Emacs 31 gets
out.

martin



reply via email to

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