emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Functions transpose/rotate/flip windows


From: Pranshu Sharma
Subject: Functions transpose/rotate/flip windows
Date: Wed, 01 Jan 2025 17:09:03 +1000

I made a new thread, as the final diff is ready that adds the
functionality of https://www.emacswiki.org/emacs/TransposeFrame, and a
lot more (rotating subtrees, 'cycling' windows such as in
https://github.com/daichirata/emacs-rotate).

This diff that adds the required modifications to window.c and window.el
and window.texi done by Martin as well, and adds window-x.el which
contains all the elisp functions which add the interactive functions.

This diff updates NEWS as well, and doesn't add any keybindings for the
functions.

Attachment: transpose-windows.diff
Description: Text Data

Here is martin's changelog:

Have 'split-window' optionally resurrect deleted windows

* src/window.c (Fwindow_old_buffer): Handle deleted window as
argument.
(make_parent_window): Remove function.
(Fsplit_window_internal): New argument REFER for resurrecting
deleted windows.  Incorporate functionality of defunct
make_parent_window.
(Fdelete_window_internal, delete_all_child_windows): Store any
deleted window's buffer in the window's old_buffer slot.
(window_dead_windows_table): Make it a 'value' type hash table
so the sequence number cannot affect its weakness.
* lisp/window.el (split-window): New argument REFER.
* doc/lispref/windows.texi (Resurrecting Windows): New section.
(Splitting Windows): Explain new argument REFER.
(Window Hooks): Rewrite description of 'window-old-buffer'.

-- 
Pranshu Sharma <https://p.bauherren.ovh>

reply via email to

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