Function: majutsu-template--lookup-function-meta

majutsu-template--lookup-function-meta is a natively compiled function defined in majutsu-template.el.

Signature

(majutsu-template--lookup-function-meta KEY)

Documentation

Return metadata struct for function identified by KEY, or nil.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-template.el
(defun majutsu-template--lookup-function-meta (key)
  "Return metadata struct for function identified by KEY, or nil."
  (let* ((name (cond
                ((stringp key) key)
                (t (gethash key majutsu-template--function-name-map)))))
    (or (and name (gethash name majutsu-template--function-registry))
        (when (stringp key)
          (let* ((sym (intern-soft key))
                 (keyword (intern-soft (concat ":" key)))
                 (canonical (or (and sym (gethash sym majutsu-template--function-name-map))
                                (and keyword (gethash keyword majutsu-template--function-name-map)))))
            (when canonical
              (gethash canonical majutsu-template--function-registry)))))))