From 90c03ffcd4b3744ae149dcede9179b0cbf9d7547 Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Sat, 17 Jun 2023 16:14:14 +0000 Subject: [PATCH] After minibuffer action, don't make the minibuffer current This fixes bug#63967. * src/minibuf.c (minibuffer_unwind): After restoring the next minibuffer outwards to the mini window (when enable-recursive-minibuffers is non-nil), don't call Fset_frame_selected_window, which used to set the current window to be the mini window. --- src/minibuf.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/minibuf.c b/src/minibuf.c index d5f95968ae1..bcb7eb9375d 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -1266,9 +1266,6 @@ minibuffer_unwind (void) set_window_buffer (window, Fcar (entry), 0, 0); Fset_window_start (window, Fcar (Fcdr (entry)), Qnil); Fset_window_point (window, Fcar (Fcdr (Fcdr (entry)))); - /* set-window-configuration may/will have unselected the - mini-window as the selected window. Restore it. */ - Fset_frame_selected_window (exp_MB_frame, window, Qnil); } else set_window_buffer (window, nth_minibuffer (0), 0, 0); -- 2.39.2