Function: srecode-calculate-default-template-string
srecode-calculate-default-template-string is a byte-compiled function
defined in find.el.gz.
Signature
(srecode-calculate-default-template-string HASH)
Documentation
Calculate the name of the template to use as a DEFAULT.
Templates are read from HASH.
Context into which the template is inserted is calculated
with srecode-calculate-context.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/srecode/find.el.gz
(defun srecode-calculate-default-template-string (hash)
"Calculate the name of the template to use as a DEFAULT.
Templates are read from HASH.
Context into which the template is inserted is calculated
with `srecode-calculate-context'."
(let* ((ctxt (srecode-calculate-context))
(ans (concat (nth 0 ctxt) ":" (nth 1 ctxt))))
(if (gethash ans hash)
ans
;; No hash at the specifics, at least offer
;; the prefix for the completing read
(concat (nth 0 ctxt) ":"))))