package ecaml

  1. Overview
  2. Docs
Library for writing Emacs plugin in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

ecaml-v0.16.0.tar.gz
sha256=d9c6f98e7b0906a7e3d332d1a30fe950b59586b860e4f051348ea854c3ae3434

doc/ecaml.ecaml_test_helpers/Ecaml_test_helpers/Buffer_helper/index.html

Module Ecaml_test_helpers.Buffer_helperSource

Sourceval with_buffer_and_point : (_, 'a) Ecaml.Sync_or_async.t -> string -> Ecaml.Line_and_column.t -> f:(unit -> 'a) -> 'a

with_buffer_and_point contents { col; row } ~f runs f in a temp buffer with contents and point at row and col.

Sourceval show_buffer : block_out:Ecaml.Position.t list -> unit
Sourceval show_point : unit -> unit

Print buffer contents with the point shown as a solid block.

Sourcemodule Region : sig ... end
Sourceval with_buffer_and_active_region : (_, 'a) Ecaml.Sync_or_async.t -> string -> Region.t -> f:(unit -> 'a) -> 'a

with_buffer_and_active_region contents region ~f runs f in a temp buffer with contents, mark at region.start, and point at region.end_.

Sourceval show_active_region : unit -> unit

Print buffer contents with the start and the end of the active region replaced by solid blocks.

Sourceval show_with_overlay_text : unit -> unit

Print buffer contents with the before-string and after-string properties from any overlays rendered as though they were present in the buffer. Also, mark any text specified as invisible through overlays (but not through text properties). This does not reflect the actual contents of the buffer, but rather how the contents would appear to the user.

Sourcemodule Sample_input : sig ... end
OCaml

Innovation. Community. Security.