Module Ecaml.Selected_window
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")
.
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 : Ecaml__.Import.Buffer.t -> unit
(describe-function 'switch-to-buffer)
val switch_to_buffer_other_window : Ecaml__.Import.Buffer.t -> unit
(describe-function 'switch-to-buffer-other-window)
val set_temporarily : Window.t -> f:(unit -> 'a) -> 'a
(describe-function 'with-selected-window)
. Avoid usingset_temporarily
, which can have visual artifacts that annoy the user, like flicker of the mode line or cursor.