]> git.eshelyaron.com Git - emacs.git/commit
Prevent the selected window being a dead mini-window when switching frames
authorAlan Mackenzie <acm@muc.de>
Sat, 8 May 2021 12:10:00 +0000 (12:10 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 8 May 2021 12:13:57 +0000 (12:13 +0000)
commitf608b4b93c061e10603551a7d189637f49d90a62
treea939b2842abe9e6805d1acfe5c697ad8a8b621f1
parentfdeb1a3dc77ccac28e6cf91b9cc4aa43f3060e7a
Prevent the selected window being a dead mini-window when switching frames

This fixes bug #48249 and also a situation where, with recursive minibuffers
enabled and minibuffer-follows-selected-frame t, switching frames when a
minibuffer was open would leave the mini-window selected on the old frame.

* lisp/window.el (record-window-buffer): Add extra parameter DO-MINIBUF, and
amend the code such that minibuffers only get processed when that parameter is
non-nil.

* src/minibuf.c (zip_minibuffer_stacks, read_minibuf): Call
Qrecord_window_buffer with the new argument set to Qt.
(move_minibuffers_onto_frame): Set the selected window on the old frame when
this would otherwise remain the mini-window.
lisp/window.el
src/minibuf.c