package ecaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=ca97b30782e1b9fc42ccd54ba6afd60a7eb1087b56f3e21076ae33abfa638dfa
md5=ecae1a972130cd93c64eecc1ed71cad1
doc/ecaml.ecaml_value/Ecaml_value/Funcall/index.html
Module Ecaml_value.FuncallSource
A typeful interface for calling Elisp, as external does for C. E.g.,
let not : bool -> bool = "not" <: bool @-> return bool
let about_emacs : unit -> unit = "about-emacs" <: nullary @-> return nil
"foo" <: ty imports Elisp function whose name is "foo" and whose type is ty, like how foo :> ty types an OCaml value.
include Value.Type.S
val create :
Core_kernel.Sexp.t ->
('a -> Core_kernel.Sexp.t) ->
(Value.t -> 'a) ->
('a -> Value.t) ->
'a Value.Type.tstring_cached is like string, except it uses of_utf8_bytes_cached.
Represent an ocaml array as an elisp list, without creating an intermediate ocaml list.
option represents None as nil and Some a as cons v nil, where v is the representation of a.
nil_or t_ represents None as nil and Some a as v, where v is the representation of a. This is a common representation used by Elisp functions. But it is only correct if nil is not a representation of any value in t; in that situation use Type.option_.
Represent a tuple (a,b) as the elisp cons cell (a . b)
Represent a tuple (a,b) as the elisp list '(a b)
val sexpable :
(module Core_kernel.Sexpable with type t = 'a) ->
name:Core_kernel.Sexp.t ->
'a Value.Type.tEmbed a sexpable ocaml type, so we can save values of the type in emacs, e.g. as buffer local variables
A list of directories. Each element is a string (directory name) or nil (try default directory). nil values are converted to ".", which has the same meaning.