aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorRichard M. Stallman2002-12-22 21:57:05 +0000
committerRichard M. Stallman2002-12-22 21:57:05 +0000
commitd17551171b121c360874a9710e1fee7dddffeb66 (patch)
tree0c3ea7b0f319a99da5d25ba79c04c5f91bc114ce /src/window.c
parent402e4f8bd4bd37ba1eb1f3c30b44c0e5e95dcd9d (diff)
downloademacs-d17551171b121c360874a9710e1fee7dddffeb66.tar.gz
emacs-d17551171b121c360874a9710e1fee7dddffeb66.zip
(select_window_1): Undo 9/21 change.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c
index db49c7afceb..fb81e45cbc4 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2767,8 +2767,7 @@ BUFFER can be a buffer or buffer name. */)
2767DEFUN ("select-window", Fselect_window, Sselect_window, 1, 1, 0, 2767DEFUN ("select-window", Fselect_window, Sselect_window, 1, 1, 0,
2768 doc: /* Select WINDOW. Most editing will apply to WINDOW's buffer. 2768 doc: /* Select WINDOW. Most editing will apply to WINDOW's buffer.
2769If WINDOW is not already selected, also make WINDOW's buffer current. 2769If WINDOW is not already selected, also make WINDOW's buffer current.
2770If WINDOW's frame is the selected frame, also make WINDOW the frame's 2770Also make WINDOW the frame's selected window.
2771selected window.
2772 2771
2773Note that the main editor command loop 2772Note that the main editor command loop
2774selects the buffer of the selected window before each command. */) 2773selects the buffer of the selected window before each command. */)
@@ -2810,7 +2809,16 @@ select_window_1 (window, recordflag)
2810 2809
2811 selected_window = window; 2810 selected_window = window;
2812 sf = SELECTED_FRAME (); 2811 sf = SELECTED_FRAME ();
2813 if (XFRAME (WINDOW_FRAME (w)) == sf) 2812 if (XFRAME (WINDOW_FRAME (w)) != sf)
2813 {
2814 XFRAME (WINDOW_FRAME (w))->selected_window = window;
2815 /* Use this rather than Fhandle_switch_frame
2816 so that FRAME_FOCUS_FRAME is moved appropriately as we
2817 move around in the state where a minibuffer in a separate
2818 frame is active. */
2819 Fselect_frame (WINDOW_FRAME (w), Qnil);
2820 }
2821 else
2814 sf->selected_window = window; 2822 sf->selected_window = window;
2815 2823
2816 if (recordflag) 2824 if (recordflag)