[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, 26 Sep 2024 16:10:48 +0200 |
User-agent: |
Mozilla Thunderbird |
>>From what I understand, the main problems are happening when destroying
> and recreating the window arragnment. How about adding a function that
> toggles or changes the window arrangment non recursivly, which will deal
> with all the backend details, and the main rotate function can just
> recursivly call that on all windows.
I attach a function 'resurrect-window' that rotate/transpose/flip
functions can call to resurrect the previous windows after having
deleted them. Tested with:
(let ((dead (split-window nil nil t)))
(set-window-buffer dead "*Messages*")
(message "%s" (next-window))
(sit-for 2)
(delete-window dead)
(let ((live (split-window)))
(resurrect-window dead live)
(message "%s" (next-window))))
martin
resurrect.diff
Description: Text Data
- Add function to rotate/transpose all windows, pranshu sharma, 2024/09/24
- Re: Add function to rotate/transpose all windows, Eli Zaretskii, 2024/09/24
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/09/25
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/09/25
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/09/25
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/09/25
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/09/25
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/09/25
- Re: Add function to rotate/transpose all windows,
martin rudalics <=
- Re: Add function to rotate/transpose all windows, Eli Zaretskii, 2024/09/26
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/09/27
- Re: Add function to rotate/transpose all windows, Eli Zaretskii, 2024/09/28
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/09/28
- Re: Add function to rotate/transpose all windows, Eli Zaretskii, 2024/09/28
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/09/28
- Re: Add function to rotate/transpose all windows, Eli Zaretskii, 2024/09/28
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/09/28
- Re: Add function to rotate/transpose all windows, Eli Zaretskii, 2024/09/28
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/09/28