]> git.eshelyaron.com Git - emacs.git/commit
With minibuffer-follows-selected-frame `hybrid', preserve recursive Mbuffers
authorAlan Mackenzie <acm@muc.de>
Sat, 30 Jan 2021 21:16:35 +0000 (21:16 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 30 Jan 2021 21:16:35 +0000 (21:16 +0000)
commit636ef445af03a564ad431648cda34d78d0cb807c
treea4b94243f71856fb087c85a57d85918d1b35a24f
parent419a33eb1dd37fe529e756e04253ff1c9ad2eeb1
With minibuffer-follows-selected-frame `hybrid', preserve recursive Mbuffers

...when enable-recursive-minibuffers is non-nil, and several minibuffers are
activated from different frames.  Also set the major mode of a reused active
minibuffer to `fundamental-mode' - up till now it's been
minibuffer-inactive-mode.

* src/minibuf.c (read_minibuf): with the indicated settings of variables,
"stack up" all containing minibuffers on the mini-window of the current
frame.  Delete another, now superfluous such stacking up.
(set_minibuffer_mode): New function.
(get_minibuffer): Call the above new function (twice), in place of inline
code, ensuring active minibuffers are never left in minibuffer-inactive-mode.
src/minibuf.c