The selected window is the one that you edit in. When a window is selected, the buffer in the window becomes the current buffer, and the cursor will appear in it.
(Info-goto-node "(elisp)Selecting Windows").
(Info-goto-node "(elisp)Selecting Windows")
val get : unit ‑> Window.t
(describe-function 'selected-window)
val set : ?move_to_front_of_buffer_list:bool ‑> Window.t ‑> unit
(describe-function 'select-window)
val switch_to_buffer : Buffer.t ‑> unit
(describe-function 'switch-to-buffer)
val split_horizontally_exn : unit ‑> unit
(describe-function 'split-window-horizontally)
val split_vertically_exn : unit ‑> unit
(describe-function 'split-window-vertically)
val find_file : string ‑> unit
(describe-function 'find-file)
val view_file : string ‑> unit
(describe-function 'view-file)