# HG changeset patch # User Jim Blandy # Date 721121862 0 # Node ID 04c1b4719e60b6a9251e684596871588ef934071 # Parent ca102ce0c00db95eeb427e344fe0167a079eeb53 * window.c (Fset_window_configuration): Protect call to Fselect_frame with a #ifdef MULTI_FRAME. [not MULTI_FRAME] (Fcurrent_window_configuration): Don't bother setting the window configuration's selected_frame member. diff -r ca102ce0c00d -r 04c1b4719e60 src/window.c --- a/src/window.c Sat Nov 07 07:37:08 1992 +0000 +++ b/src/window.c Sat Nov 07 07:37:42 1992 +0000 @@ -2537,12 +2537,14 @@ 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 @@ 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;