+2008-09-15 Martin Rudalics <rudalics@gmx.at>
+
+ * window.c (Fselect_window): Don't update window_select_count and
+ use_time when norecord is not nil.
+
2008-09-14 Kenichi Handa <handa@m17n.org>
* fileio.c (Finsert_file_contents): Delete incorrect decrement of
doc: /* Select WINDOW. Most editing will apply to WINDOW's buffer.
If WINDOW is not already selected, make WINDOW's buffer current
and make WINDOW the frame's selected window. Return WINDOW.
-Optional second arg NORECORD non-nil means
-do not put this buffer at the front of the list of recently selected ones.
+Optional second arg NORECORD non-nil means do not put this buffer
+at the front of the list of recently selected ones.
-Note that the main editor command loop
-selects the buffer of the selected window before each command. */)
+Note that the main editor command loop selects the buffer of the
+selected window before each command. */)
(window, norecord)
register Lisp_Object window, norecord;
{
w = XWINDOW (window);
w->frozen_window_start_p = 0;
- ++window_select_count;
- XSETFASTINT (w->use_time, window_select_count);
+ if (NILP (norecord))
+ {
+ ++window_select_count;
+ XSETFASTINT (w->use_time, window_select_count);
+ }
+
if (EQ (window, selected_window))
return window;