* window.c (Fset_window_configuration): Protect call to
authorJim Blandy <jimb@redhat.com>
Sat, 7 Nov 1992 07:37:42 +0000 (07:37 +0000)
committerJim Blandy <jimb@redhat.com>
Sat, 7 Nov 1992 07:37:42 +0000 (07:37 +0000)
Fselect_frame with a #ifdef MULTI_FRAME.
[not MULTI_FRAME] (Fcurrent_window_configuration): Don't bother
setting the window configuration's selected_frame member.

src/window.c

index 942f1f8..94bae95 100644 (file)
@@ -2537,12 +2537,14 @@ by `current-window-configuration' (which see).")
   FRAME_ROOT_WINDOW (f) = data->root_window;
   Fselect_window (data->current_window);
 
+#ifdef MULTI_FRAME
   /* Fselect_window will have made f the selected frame, so we
      reselect the proper frame here.  Fselect_frame will change the
      selected window too, but that doesn't make the call to
      Fselect_window above totally superfluous; it still sets f's
      selected window.  */
   Fselect_frame (data->selected_frame);
+#endif
 
   if (!NILP (new_current_buffer))
     Fset_buffer (new_current_buffer);
@@ -2717,7 +2719,9 @@ redirection (see `redirect-frame-focus').")
                                  Qnil));
   XFASTINT (data->frame_width) = FRAME_WIDTH (f);
   XFASTINT (data->frame_height) = FRAME_HEIGHT (f);
+#ifdef MULTI_FRAME
   XSET (data->selected_frame, Lisp_Frame, selected_frame);
+#endif
   data->current_window = FRAME_SELECTED_WINDOW (f);
   XSET (data->current_buffer, Lisp_Buffer, current_buffer);
   data->minibuf_scroll_window = Vminibuf_scroll_window;