aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1992-11-07 07:37:42 +0000
committerJim Blandy1992-11-07 07:37:42 +0000
commitad85424916e29edb806b318fa6f854968abbcb0b (patch)
tree8b1c7f4efd184e440a7e53f0d83d0678de3b76bf /src
parent92ce5d32cd42bd80ef57557525e56bf4510a32d4 (diff)
downloademacs-ad85424916e29edb806b318fa6f854968abbcb0b.tar.gz
emacs-ad85424916e29edb806b318fa6f854968abbcb0b.zip
* 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.
Diffstat (limited to 'src')
-rw-r--r--src/window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index 942f1f86d42..94bae9506b8 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2537,12 +2537,14 @@ by `current-window-configuration' (which see).")
2537 FRAME_ROOT_WINDOW (f) = data->root_window; 2537 FRAME_ROOT_WINDOW (f) = data->root_window;
2538 Fselect_window (data->current_window); 2538 Fselect_window (data->current_window);
2539 2539
2540#ifdef MULTI_FRAME
2540 /* Fselect_window will have made f the selected frame, so we 2541 /* Fselect_window will have made f the selected frame, so we
2541 reselect the proper frame here. Fselect_frame will change the 2542 reselect the proper frame here. Fselect_frame will change the
2542 selected window too, but that doesn't make the call to 2543 selected window too, but that doesn't make the call to
2543 Fselect_window above totally superfluous; it still sets f's 2544 Fselect_window above totally superfluous; it still sets f's
2544 selected window. */ 2545 selected window. */
2545 Fselect_frame (data->selected_frame); 2546 Fselect_frame (data->selected_frame);
2547#endif
2546 2548
2547 if (!NILP (new_current_buffer)) 2549 if (!NILP (new_current_buffer))
2548 Fset_buffer (new_current_buffer); 2550 Fset_buffer (new_current_buffer);
@@ -2717,7 +2719,9 @@ redirection (see `redirect-frame-focus').")
2717 Qnil)); 2719 Qnil));
2718 XFASTINT (data->frame_width) = FRAME_WIDTH (f); 2720 XFASTINT (data->frame_width) = FRAME_WIDTH (f);
2719 XFASTINT (data->frame_height) = FRAME_HEIGHT (f); 2721 XFASTINT (data->frame_height) = FRAME_HEIGHT (f);
2722#ifdef MULTI_FRAME
2720 XSET (data->selected_frame, Lisp_Frame, selected_frame); 2723 XSET (data->selected_frame, Lisp_Frame, selected_frame);
2724#endif
2721 data->current_window = FRAME_SELECTED_WINDOW (f); 2725 data->current_window = FRAME_SELECTED_WINDOW (f);
2722 XSET (data->current_buffer, Lisp_Buffer, current_buffer); 2726 XSET (data->current_buffer, Lisp_Buffer, current_buffer);
2723 data->minibuf_scroll_window = Vminibuf_scroll_window; 2727 data->minibuf_scroll_window = Vminibuf_scroll_window;