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: Fri, 27 Sep 2024 19:29:21 +0200
User-agent: Mozilla Thunderbird

> This doc string needs to be more detailed in what it means to "put the
> window object of DEAD in the place of LIVE".  For example, it
> currently keeps silent about what happens to LIVE after the call.

The fact that LIVE existed at all was a misfeature.  I now put the dead
window right into the new window created by 'split-window' with the help
of a new argument.  Patch attached.  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 nil nil nil nil dead)))
    (message "%s" (next-window))))

> Finally, this needs to be documented in the ELisp manual and called
> out in NEWS.

Sure.  I'll wait until the OP approves the concept and was able to make
use of it.

Thanks, martin

Attachment: resurrect.diff
Description: Text Data


reply via email to

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