Subject: Re: bug#38164: quit-restore-window doesn't restore point in man

From: martin rudalics <[email-masked]>
Date: Fri, 15 Nov 2019 09:13:09 +0100

> Is it possible to not restore the previous window configuration
 > when quitting the minibuffer?

No.  It's a very elaborate scheme in read_minibuf triggered by

   record_unwind_protect (restore_buffer, Fcurrent_buffer ());

   choose_minibuf_frame ();

   record_unwind_protect_void (choose_minibuf_frame);

   record_unwind_protect (restore_window_configuration,
			 Fcurrent_window_configuration (Qnil));

   /* If the minibuffer window is on a different frame, save that
      frame's configuration too.  */
   mini_frame = WINDOW_FRAME (XWINDOW (minibuf_window));
   if (!EQ (mini_frame, selected_frame))
     record_unwind_protect (restore_window_configuration,
			   Fcurrent_window_configuration (mini_frame));

so it may even save two window configurations.

martin