package ecaml
Library for writing Emacs plugin in OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
ecaml-v0.15.0.tar.gz
sha256=89f2806dd37012b07ddbaf40c2d9cfb9de29289944d921d23f4fd9b93d5c7cba
doc/ecaml.ecaml_test_helpers/Ecaml_test_helpers/Buffer_helper/index.html
Module Ecaml_test_helpers.Buffer_helper
val 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
.
val show_buffer : block_out:Ecaml.Position.t list -> unit
module Region : sig ... end
val 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_
.
Print buffer contents with the start and the end of the active region replaced by solid blocks.
module Sample_input : sig ... end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>