diff options
| author | Martin Rudalics | 2008-09-15 08:21:39 +0000 |
|---|---|---|
| committer | Martin Rudalics | 2008-09-15 08:21:39 +0000 |
| commit | 4e822bdc11e453f03029768083f3e712e702fc4b (patch) | |
| tree | 788c56e6212900b777e203e185738ab2c4bd1830 /src | |
| parent | fdbe0096c5244c5ee19f9c2c6ab4ad83a320e2f5 (diff) | |
| download | emacs-4e822bdc11e453f03029768083f3e712e702fc4b.tar.gz emacs-4e822bdc11e453f03029768083f3e712e702fc4b.zip | |
(Fselect_window): Don't update window_select_count and
use_time when norecord is not nil.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/window.c | 16 |
2 files changed, 15 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1f0ae13a37d..98e4aad8a80 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-09-15 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * window.c (Fselect_window): Don't update window_select_count and | ||
| 4 | use_time when norecord is not nil. | ||
| 5 | |||
| 1 | 2008-09-14 Kenichi Handa <handa@m17n.org> | 6 | 2008-09-14 Kenichi Handa <handa@m17n.org> |
| 2 | 7 | ||
| 3 | * fileio.c (Finsert_file_contents): Delete incorrect decrement of | 8 | * fileio.c (Finsert_file_contents): Delete incorrect decrement of |
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 | ||