package ecaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

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 : Buffer.t -> unit Async_kernel.Deferred.t

(describe-function 'switch-to-buffer)

val switch_to_buffer_other_window : Buffer.t -> unit Async_kernel.Deferred.t

(describe-function 'switch-to-buffer-other-window)

val split_horizontally_exn : unit -> unit

(describe-function 'split-window-horizontally)

val split_sensibly_exn : unit -> unit

(describe-function 'split-window-sensibly)

val split_vertically_exn : unit -> unit

(describe-function 'split-window-vertically)

val find_file : string -> unit Async_kernel.Deferred.t

(describe-function 'find-file)

val find_file_other_window : string -> unit

(describe-function 'find-file-other-window)

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 using set_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)

val quit : unit -> unit Async_kernel.Deferred.t

(describe-function 'quit-window)

val other_window : int -> unit

(describe-function 'other-window)

val height : unit -> int

(describe-function 'window-height)

val width : unit -> int

(describe-function 'window-width)

module Blocking : sig ... end
OCaml

Innovation. Community. Security.