bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: martin rudalics
Subject: bug#38164: quit-restore-window doesn't restore point in man
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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]