Function: selected-window
selected-window is a function defined in window.c.
Signature
(selected-window)
Documentation
Return the selected window.
The selected window is the window in which the standard cursor for selected windows appears and to which many commands apply.
Also see old-selected-window and minibuffer-selected-window.
Probably introduced at or before Emacs version 1.1.
Source Code
// Defined in /usr/src/emacs/src/window.c
{
return selected_window;
}