Variable: tempo-match-finder

tempo-match-finder is a buffer-local variable defined in tempo.el.gz.

Documentation

The regexp or function used to find the string to match against tags.

If tempo-match-finder is a string, it should contain a regular expression with at least one \( \) pair. When searching for tags, tempo-complete-tag calls re-search-backward with this string, and the string between the first \( and \) is used for matching against each string in the tag list. If one is found, the whole text between the first \( and the point is replaced with the inserted template.

You will probably want to include \= at the end of the regexp to make sure that the string is matched only against text adjacent to the point.

If tempo-match-finder is a symbol, it should be a function that returns a pair of the form (STRING . POS), where STRING is the string used for matching and POS is the buffer position after which text should be replaced with a template.

Source Code

;; Defined in /usr/src/emacs/lisp/tempo.el.gz
(defvar-local tempo-match-finder "\\b\\([[:word:]]+\\)\\="
  "The regexp or function used to find the string to match against tags.

If `tempo-match-finder' is a string, it should contain a regular
expression with at least one \\( \\) pair.  When searching for tags,
`tempo-complete-tag' calls `re-search-backward' with this string, and
the string between the first \\( and \\) is used for matching against
each string in the tag list.  If one is found, the whole text between
the first \\( and the point is replaced with the inserted template.

You will probably want to include \\=\\= at the end of the regexp to
make sure that the string is matched only against text adjacent to the
point.

If `tempo-match-finder' is a symbol, it should be a function that
returns a pair of the form (STRING . POS), where STRING is the string
used for matching and POS is the buffer position after which text
should be replaced with a template.")