Module Bookmark.Property

type 'a t = {
symbol : Symbol.t;
type_ : 'a Ecaml__.Import.Value.Type.t;
}
val sexp_of_t : ('a -> Ppx_sexp_conv_lib.Sexp.t) -> 'a t -> Ppx_sexp_conv_lib.Sexp.t
val create : string -> 'a Ecaml__.Import.Value.Type.t -> 'a t
module And_value : sig ... end
val and_value : 'a t -> 'a -> And_value.t

Standard properties

(describe-variable 'bookmark-alist) documents most of them.

front_context_string and rear_context_string are meant to handle changes to the file. The bookmark-default-handler function first jumps to position, then searches forward for front_context_string, then searches backwards for rear_context_string.

val annotation : string t
val filename : Core_kernel.Filename.t t
val front_context_string : string t
val handler : Ecaml__.Import.Function.t t

Typical use is to defun a handler and set handler to Function.of_symbol.

The property has type Function.t t so that we can deserialize values like (lambda ...) set from elisp.

val position : Position.t t
val rear_context_string : string t