Function: tempo-use-tag-list

tempo-use-tag-list is a byte-compiled function defined in tempo.el.gz.

Signature

(tempo-use-tag-list TAG-LIST &optional COMPLETION-FUNCTION)

Documentation

Install TAG-LIST to be used for template completion in the current buffer.

TAG-LIST is a symbol whose variable value is a tag list created with tempo-add-tag.

COMPLETION-FUNCTION is an obsolete option for specifying an optional function or string that is used by M-x tempo-complete-tag (tempo-complete-tag) to find a string to match the tag against. It has the same definition as the variable tempo-match-finder. In this version, supplying a COMPLETION-FUNCTION just sets tempo-match-finder locally.

Source Code

;; Defined in /usr/src/emacs/lisp/tempo.el.gz
;;;
;;; tempo-use-tag-list

(defun tempo-use-tag-list (tag-list &optional completion-function)
  "Install TAG-LIST to be used for template completion in the current buffer.
TAG-LIST is a symbol whose variable value is a tag list created with
`tempo-add-tag'.

COMPLETION-FUNCTION is an obsolete option for specifying an optional
function or string that is used by \\[tempo-complete-tag] to find a
string to match the tag against.  It has the same definition as the
variable `tempo-match-finder'.  In this version, supplying a
COMPLETION-FUNCTION just sets `tempo-match-finder' locally."
  (setf (alist-get tag-list tempo-local-tags) completion-function)
  (if completion-function
      (setq tempo-match-finder completion-function))
  (tempo-invalidate-collection))