Function: majutsu-template-defkeyword

majutsu-template-defkeyword is a macro defined in majutsu-template.el.

Signature

(majutsu-template-defkeyword NAME OWNER SIGNATURE &rest BODY)

Documentation

Declare or define keyword NAME (a 0-argument method) on OWNER type.

Body-less keywords are metadata-only declarations. When BODY is present, the keyword becomes a local owner-bound lowering form that still participates in bare keyword self dispatch.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-template.el
(defmacro majutsu-template-defkeyword (name owner signature &rest body)
  "Declare or define keyword NAME (a 0-argument method) on OWNER type.
Body-less keywords are metadata-only declarations. When BODY is present, the
keyword becomes a local owner-bound lowering form that still participates in
bare keyword self dispatch."
  (declare (indent defun))
  (if body
      `(majutsu-template-defun ,name ((self ,owner))
         ,(majutsu-template-def--inherit-signature signature owner t)
         ,@body)
    `(eval-and-compile
       (majutsu-template--register-function
        ,(majutsu-template-def--owned-meta-form name owner nil signature t)))))