]> git.eshelyaron.com Git - emacs.git/commit
Handle removal of selected tty child frame
authorMartin Rudalics <rudalics@gmx.at>
Tue, 14 Jan 2025 08:51:17 +0000 (09:51 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 14 Jan 2025 16:23:59 +0000 (17:23 +0100)
commitaf60636245abbcbda7131cae9df9ae13d89a9dbc
treed3a64889817957e60a042bd9a57f5bb2a6bf4072
parentae5836c8f7393706b33d82f79a542a054c50d9c6
Handle removal of selected tty child frame

* src/dispextern.h (root_frame):
* src/frame.h (root_frame): Move declaration from dispextern.h
to frame.h.
(SET_FRAME_VISIBLE): Whend making the selected tty child frame
invisible, use mru_rooted_frame to find a frame to switch to.
* src/dispnew.c (root_frame): Move root_frame to frame.c.
* src/frame.c (do_switch_frame): On ttys don't change the
top frame when switching from a child frame to another frame
with the same root.
(root_frame): Move here from dispnew.c.
(Fframe_root_frame): New Lisp function.
(delete_frame): Whend deleting the selected tty child frame use,
mru_rooted_frame to find a frame to switch to.
* src/window.c (mru_rooted_frame): New function.
* src/window.h (mru_rooted_frame): Declare it.
* doc/lispref/frames.texi (Child Frames): Describe new function
'frame-root-frame'.

(cherry picked from commit d4aeb6bd230c42cf7b773ec9aebd80ad6d928d98)
doc/lispref/frames.texi
src/dispextern.h
src/dispnew.c
src/frame.c
src/frame.h
src/window.c
src/window.h