aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/window.c b/src/window.c
index f3154849fef..a5374d3531e 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3496,11 +3496,11 @@ DEFUN ("select-window", Fselect_window, Sselect_window, 1, 2, 0,
3496 doc: /* Select WINDOW. Most editing will apply to WINDOW's buffer. 3496 doc: /* Select WINDOW. Most editing will apply to WINDOW's buffer.
3497If WINDOW is not already selected, make WINDOW's buffer current 3497If WINDOW is not already selected, make WINDOW's buffer current
3498and make WINDOW the frame's selected window. Return WINDOW. 3498and make WINDOW the frame's selected window. Return WINDOW.
3499Optional second arg NORECORD non-nil means 3499Optional second arg NORECORD non-nil means do not put this buffer
3500do not put this buffer at the front of the list of recently selected ones. 3500at the front of the list of recently selected ones.
3501 3501
3502Note that the main editor command loop 3502Note that the main editor command loop selects the buffer of the
3503selects the buffer of the selected window before each command. */) 3503selected window before each command. */)
3504 (window, norecord) 3504 (window, norecord)
3505 register Lisp_Object window, norecord; 3505 register Lisp_Object window, norecord;
3506{ 3506{
@@ -3513,8 +3513,12 @@ selects the buffer of the selected window before each command. */)
3513 w = XWINDOW (window); 3513 w = XWINDOW (window);
3514 w->frozen_window_start_p = 0; 3514 w->frozen_window_start_p = 0;
3515 3515
3516 ++window_select_count; 3516 if (NILP (norecord))
3517 XSETFASTINT (w->use_time, window_select_count); 3517 {
3518 ++window_select_count;
3519 XSETFASTINT (w->use_time, window_select_count);
3520 }
3521
3518 if (EQ (window, selected_window)) 3522 if (EQ (window, selected_window))
3519 return window; 3523 return window;
3520 3524