Function: window-bump-use-time
window-bump-use-time is a function defined in window.c.
Signature
(window-bump-use-time &optional WINDOW)
Documentation
Mark WINDOW as second most recently used.
WINDOW must specify a live window.
If WINDOW is not selected and the selected window has the highest use time of all windows, set the use time of WINDOW to that of the selected window, increase the use time of the selected window by one and return the new use time of WINDOW. Otherwise, do nothing and return nil.
Probably introduced at or before Emacs version 28.1.
Source Code
// Defined in /usr/src/emacs/src/window.c
{
struct window *w = decode_live_window (window);
struct window *sw = XWINDOW (selected_window);
if (w != sw && sw->use_time == window_select_count)
{
w->use_time = window_select_count;
sw->use_time = ++window_select_count;
return make_fixnum (w->use_time);
}
else
return Qnil;
}