diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 16 |
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. |
| 3497 | If WINDOW is not already selected, make WINDOW's buffer current | 3497 | If WINDOW is not already selected, make WINDOW's buffer current |
| 3498 | and make WINDOW the frame's selected window. Return WINDOW. | 3498 | and make WINDOW the frame's selected window. Return WINDOW. |
| 3499 | Optional second arg NORECORD non-nil means | 3499 | Optional second arg NORECORD non-nil means do not put this buffer |
| 3500 | do not put this buffer at the front of the list of recently selected ones. | 3500 | at the front of the list of recently selected ones. |
| 3501 | 3501 | ||
| 3502 | Note that the main editor command loop | 3502 | Note that the main editor command loop selects the buffer of the |
| 3503 | selects the buffer of the selected window before each command. */) | 3503 | selected 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 | ||