[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master c3edaa5: minibuffer code: restore original frame after using mini
From: |
Alan Mackenzie |
Subject: |
master c3edaa5: minibuffer code: restore original frame after using minibuffer-only frame, etc |
Date: |
Mon, 23 Nov 2020 10:56:32 -0500 (EST) |
branch: master
commit c3edaa552491629917489ddd7aaa4829fd3487a4
Author: Alan Mackenzie <acm@muc.de>
Commit: Alan Mackenzie <acm@muc.de>
minibuffer code: restore original frame after using minibuffer-only frame,
etc
* 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 | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/minibuf.c b/src/minibuf.c
index 464e301..fc3fd92 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -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,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master c3edaa5: minibuffer code: restore original frame after using minibuffer-only frame, etc,
Alan Mackenzie <=