Function: tempo-add-tag
tempo-add-tag is an interactive and byte-compiled function defined in
tempo.el.gz.
Signature
(tempo-add-tag TAG TEMPLATE &optional TAG-LIST)
Documentation
Add a template tag.
Add the TAG, that should complete to TEMPLATE to the list in TAG-LIST,
or to tempo-tags if TAG-LIST is nil. If TAG was already in the list,
replace its template with TEMPLATE.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/tempo.el.gz
;;;
;;; tempo-add-tag
(defun tempo-add-tag (tag template &optional tag-list)
"Add a template tag.
Add the TAG, that should complete to TEMPLATE to the list in TAG-LIST,
or to `tempo-tags' if TAG-LIST is nil. If TAG was already in the list,
replace its template with TEMPLATE."
(interactive "sTag: \nCTemplate: ")
(if (null tag-list)
(setq tag-list 'tempo-tags))
(let ((entry (assoc tag (symbol-value tag-list))))
(if entry
;; Tag is already in the list, assign a new template to it.
(setcdr entry template)
;; Tag is not present in the list, add it with its template.
(set tag-list (cons (cons tag template) (symbol-value tag-list)))))
;; Invalidate globally if we're modifying 'tempo-tags'.
(tempo-invalidate-collection (eq tag-list 'tempo-tags)))