]> git.eshelyaron.com Git - emacs.git/commitdiff
minibuffer code: restore original frame after using minibuffer-only frame, etc
authorAlan Mackenzie <acm@muc.de>
Mon, 23 Nov 2020 15:54:50 +0000 (15:54 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 23 Nov 2020 15:54:50 +0000 (15:54 +0000)
* src/minibuf.c (read_minibuf): In the record_unwind_protect for the second
restore_window_configuration (separate minibuffer frame case) arrange for the
future switching back to the original frame by Fset_window_configuration.

src/minibuf.c

index 464e3018f7d2d30c7905c49bd1c1a08d674eea86..fc3fd92a880c81c79a273e50bb8e25ba4ece10db 100644 (file)
@@ -508,7 +508,10 @@ read_minibuf (Lisp_Object map, Lisp_Object initial, Lisp_Object prompt,
   mini_frame = WINDOW_FRAME (XWINDOW (minibuf_window));
   if (!EQ (mini_frame, selected_frame))
     record_unwind_protect (restore_window_configuration,
-                          Fcons (Qt,
+                          Fcons (/* Arrange for the frame later to be
+                                     switched back to the calling
+                                     frame. */
+                                  Qnil,
                                   Fcurrent_window_configuration (mini_frame)));
 
   /* If the minibuffer is on an iconified or invisible frame,