Module Buffer_local.Wrap
Idiomatic usage of Wrap looks like:
Buffer_local.Wrap.(SYMBOL_NAME <: TYPE) For example:
Buffer_local.Wrap.("default-directory" <: string) To use ~make_buffer_local_always:true, the idiom is:
Buffer_local.Wrap.(
let ( <: ) = ( <: ) ~make_buffer_local_always:true in
SYMBOL_NAME <: TYPE)val (<:) : ?make_buffer_local_always:bool -> string -> 'a Ecaml__.Import.Value.Type.t -> 'a t
include Ecaml__.Import.Value.Type.S
val create : Core_kernel.Sexp.t -> ('a -> Core_kernel.Sexp.t) -> (value -> 'a) -> ('a -> value) -> 'a tval with_of_value_exn : 'a t -> (value -> 'a) -> 'a tval to_sexp : 'a t -> 'a -> Core_kernel.Sexp.tval bool : bool tval float : float tval ignored : unit tval int : int tval string : string tval string_cached : string tstring_cachedis likestring, except it usesof_utf8_bytes_cached.
val unit : unit tval value : value tval list : 'a t -> 'a list tval vector : 'a t -> 'a array tval array_as_list : 'a t -> 'a array tRepresent an ocaml array as an elisp list, without creating an intermediate ocaml list.
val option : 'a t -> 'a option toptionrepresentsNoneasnilandSome aascons v nil, wherevis the representation ofa.
val nil_or : 'a t -> 'a option tnil_or t_representsNoneasnilandSome aasv, wherevis the representation ofa. This is a common representation used by Elisp functions. But it is only correct ifnilis not a representation of any value int; in that situation useType.option_.
val alist : 'a t -> 'b t -> ('a * 'b) list tval tuple : 'a t -> 'b t -> ('a * 'b) tRepresent a tuple (a,b) as the elisp cons cell (a . b)
val sexpable : (module Core_kernel.Sexpable with type t = 'a) -> name:Core_kernel.Sexp.t -> 'a tEmbed a sexpable ocaml type, so we can save values of the type in emacs, e.g. as buffer local variables
val path_list : string list tA 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.