Function: srecode-compile-parse-inserter
srecode-compile-parse-inserter is a byte-compiled function defined in
compile.el.gz.
Signature
(srecode-compile-parse-inserter TXT STATE)
Documentation
Parse the inserter TXT with the current STATE.
Return an inserter object.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/srecode/compile.el.gz
(defun srecode-compile-parse-inserter (txt STATE)
"Parse the inserter TXT with the current STATE.
Return an inserter object."
(let ((key (aref txt 0))
name
)
(if (and (or (< key ?A) (> key ?Z))
(or (< key ?a) (> key ?z)) )
(setq name (substring txt 1))
(setq name txt
key nil))
(let* ((junk (string-match ":" name))
(namepart (if junk
(substring name 0 (match-beginning 0))
name))
(secondname (if junk
(substring name (match-end 0))
nil))
(new-inserter (srecode-compile-inserter
namepart key STATE
:secondname secondname
)))
;; Return the new inserter
new-inserter)))