Module Ecaml.Load_history
load-history
is an Emacs alist that associates the names of loaded library files with the names of the functions and variables they defined, as well as the features they provided or required. This is used by find-function
, find-variable
, and in *Help*
buffers to jump from a symbol to its definition.
(Info-goto-node "(elisp)Where Defined")
module Face = Ecaml__.Face0
val defining_file : Symbol.t -> string option
(describe-function 'symbol-file)
module Entry : sig ... end
Entry
defines the various kinds of entries stored inload-history
.
val add_entry : Core_kernel.Source_code_position.t -> Entry.t -> unit
add_entry
is called by (defcustom
,defun
,defvar
) and adds the entry to alist ref
, for later use byupdate_emacs_with_entries
.
val update_emacs_with_entries : chop_prefix:string -> in_dir:string -> unit
update_emacs_with_entries
updatesload-history
with the information supplied toadd_entry
, which make it possible to, within Emacs, jump from a symbol defined by Ecaml to the Ecaml source. Each source-file name is adjusted by:Filename.concat in_dir (String.chop_prefix_exn file ~prefix:chop_prefix)
module Type : sig ... end
Type
represents the type of symbol being searched for, corresponding to theTYPE
argument offind-function-search-for-symbol
.
val location_exn : Symbol.t -> Type.t -> Core_kernel.Source_code_position.t