package ecaml

  1. Overview
  2. Docs
Library for writing Emacs plugin in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=87e76473915e12d718096100a5c4d15d98aba6f99ecbf21814b7389e8c28bb25

doc/ecaml/Ecaml/Regexp/Last_match/index.html

Module Regexp.Last_matchSource

Supplying ~update_last_match:true to a searching function causes Emacs to keep track of the "last match", i.e. the start and end positions of the segments of text found during the search. One can access parts of the last match via the Last_match functions. subexp is one based. (Info-goto-node "(elisp)Match Data")

Sourcetype t
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval get_exn : unit -> t

(describe-function 'match-data) (Info-goto-node "(elisp)Entire Match Data")

Sourceval set : t -> unit

(describe-function 'set-match-data) (Info-goto-node "(elisp)Entire Match Data")

Sourceval save : (unit -> 'a) -> 'a

(describe-function 'save-match-data) (Info-goto-node "(elisp)Saving Match Data")

Sourceval text_exn : ?subexp:int -> ?text_properties:bool -> unit -> Text.t

text_exn returns the text of the last match, or the subexp'th parenthesized subexpression. (describe-function 'match-string) (Info-goto-node "(elisp)Simple Match Data")

Sourceval start_exn : ?subexp:int -> unit -> int

start_exn returns the index of the start of the last match, or the subexp'th parenthesized subexpression. (describe-function 'match-beginning) (Info-goto-node "(elisp)Simple Match Data")

Sourceval end_exn : ?subexp:int -> unit -> int

end_exn returns the index after the end of the last match, or the subexp'th parenthesized subexpression. (describe-function 'match-end) (Info-goto-node "(elisp)Simple Match Data")

Sourceval replace : string -> unit

(describe-function 'replace-match)

Sourcemodule Private : sig ... end
OCaml

Innovation. Community. Security.