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, 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

Attachment: resurrect.diff
Description: Text Data


reply via email to

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