Function: elisp-refs-macro
elisp-refs-macro is an autoloaded, interactive and byte-compiled
function defined in elisp-refs.el.
Signature
(elisp-refs-macro SYMBOL &optional PATH-PREFIX)
Documentation
Display all the references to macro SYMBOL, in all loaded elisp files.
If called with a prefix, prompt for a directory to limit the search.
This searches for macros, not functions. For that, see
elisp-refs-function.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/elisp-refs-20230920.201/elisp-refs.el
;;;###autoload
(defun elisp-refs-macro (symbol &optional path-prefix)
"Display all the references to macro SYMBOL, in all loaded
elisp files.
If called with a prefix, prompt for a directory to limit the search.
This searches for macros, not functions. For that, see
`elisp-refs-function'."
(interactive
(list (elisp-refs--completing-read-symbol "Macro: " #'macrop)
(when current-prefix-arg
(read-directory-name "Limit search to loaded files in: "))))
(when (not (macrop symbol))
(if (functionp symbol)
(user-error "%s is a function. Did you mean elisp-refs-function?"
symbol)
(user-error "%s is not a function. Did you mean elisp-refs-symbol?"
symbol)))
(elisp-refs--search symbol
(elisp-refs--describe-button symbol 'macro)
(lambda (buf)
(elisp-refs--read-and-find buf symbol #'elisp-refs--macro-p))
path-prefix))