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 find_file : string -> unit Async_kernel.Deferred.t
(describe-function 'find-file)
val view_file : string -> unit Async_kernel.Deferred.t
(describe-function 'view-file)
val save_selected_window : (_, 'a) Sync_or_async.t -> (unit -> 'a) -> 'a
(describe-function 'save-selected-window)
val set_temporarily : (_, 'a) Sync_or_async.t -> 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.
val save_window_excursion : (_, 'a) Sync_or_async.t -> (unit -> 'a) -> 'a
(describe-function 'save-window-excursion)