Function: run-window-scroll-functions
run-window-scroll-functions is a function defined in window.c.
Signature
(run-window-scroll-functions &optional WINDOW)
Documentation
Run window-scroll-functions for WINDOW.
If WINDOW is omitted or nil, it defaults to the selected window.
This function is called by split-window for the new window, after it
has established the size of the new window.
Source Code
// Defined in /usr/src/emacs/src/window.c
{
struct window *w = decode_live_window (window);
specpdl_ref count = SPECPDL_INDEX ();
record_unwind_current_buffer ();
Fset_buffer (w->contents);
if (!NILP (Vwindow_scroll_functions))
run_hook_with_args_2 (Qwindow_scroll_functions, window,
Fmarker_position (w->start));
unbind_to (count, Qnil);
return Qnil;
}