Module Ecaml.Variable_watcher

A variable watcher provides a way to run a function when the value of a variable is changed.

Requires emacs 26.1 or later.

(Info-goto-node "(elisp)Watching Variables")

module Operation : sig ... end
module Event : sig ... end
type t
val add : Core_kernel.Source_code_position.t -> 'a Var.t -> f:(Event.t -> unit) -> t

(describe-function 'add-variable-watcher)

val remove : t -> unit

(describe-function 'remove-variable-watcher)