package chamo

  1. Overview
  2. Docs
val buffer : my_buffer
val mutable date : float option
val mutable encoding : string option
val mutable filename : string
val mutable mode : mode option
val mutable name : string
method attributes : (string * string) list
method buffer : my_buffer
method date : float option
method encoding : string option
method filename : string
method line_offset_from_line_in_file : int -> int

Return the character offset in the buffer corresponding to the first character of the given line in the file.

method mode : mode option
method mode_key_bindings : (Stk.Key.keystate list * string) list
method mode_menus : (string * Stk.Menu.menu_entry list) list
method mode_name : string option
method mode_from_display : string -> string
method mode_to_display : string -> string
method name : string
method set_date : float option -> unit
method set_encoding : string option -> unit
method set_filename : string -> unit
method of_utf8 : string -> string
method to_utf8 : string -> string
method range_from_range_in_file : left:int -> right:int -> int * int

From a range (in character offsets) in the given file, return the corresponding range in the buffer.

method set_mode : mode option -> unit
method set_name : string -> unit
method set_syntax_mode : string option -> unit
method syntax_mode : string option
method update_date : unit

update date with the last modification date of the file

method load_file : string -> unit
method newer_file_exists : bool

Return whether the file was modified since last loaded or written by chamo.

method write_file : ?fail_if_newer:bool -> unit -> unit
  • raises Newer_file_exists

    filename if the file on disk has been written since chamo loaded or wrote it.

  • parameter fail_if_newer

    indicates whether to raise Newer_file_exists. Default if false.

OCaml

Innovation. Community. Security.