Function: majutsu-template--normalize-type-symbol
majutsu-template--normalize-type-symbol is a natively compiled
function defined in majutsu-template.el.
Signature
(majutsu-template--normalize-type-symbol TYPE)
Documentation
Normalize TYPE expression to a symbol, validating format.
TYPE may be a symbol, keyword, or string.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-template.el
(defun majutsu-template--normalize-type-symbol (type)
"Normalize TYPE expression to a symbol, validating format.
TYPE may be a symbol, keyword, or string."
(cond
((symbolp type)
(if (keywordp type)
(intern (substring (symbol-name type) 1))
type))
((stringp type)
(if (and (> (length type) 0) (eq (aref type 0) ?:))
(intern (substring type 1))
(intern type)))
(t
(user-error "majutsu-template: invalid type specifier %S" type))))