Function: srecode-read-template-name

srecode-read-template-name is a byte-compiled function defined in find.el.gz.

Signature

(srecode-read-template-name PROMPT &optional INITIAL HIST DEFAULT)

Documentation

Completing read for Semantic Recoder template names.

PROMPT is used to query for the name of the template desired. INITIAL is the initial string to use. HIST is a history variable to use. DEFAULT is what to use if the user presses RET.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/srecode/find.el.gz
(defun srecode-read-template-name (prompt &optional initial hist _default)
  "Completing read for Semantic Recoder template names.
PROMPT is used to query for the name of the template desired.
INITIAL is the initial string to use.
HIST is a history variable to use.
DEFAULT is what to use if the user presses RET."
  (srecode-load-tables-for-mode major-mode)
  (let* ((hash (srecode-all-template-hash))
	 (def (or initial
		  (srecode-calculate-default-template-string hash))))
    (completing-read prompt hash
		     nil t def
		     (or hist
			 'srecode-read-template-name-history))))