I've got a few functions in api-wrap.el
that I'll refer to as 'macro code', here simplified to clarify the question:
- function
(generate-form prefix kind &rest args)
returns an unevaluated form that would define a new specific function - macro
(generate-macros prefix &rest args)
loops overPUT
,GET
, etc. and defines macros that usegenerate-form
as a definition
So, calling order: generate-macros
creates macros (here called factories) that dip into generate-form
to create the definition. These factory-macros are what actually defines each target function in application code.
Finally, the question: when I define one of these target functions in application code, I get a docstring that looks like the following
some-awesomely-generated-function is a Lisp function.
I don't get any link to where the function was defined in application code like I would if I was describing a normally-defined function. The same applies for the macros generated by generate-macros
, though I'm less concerned for those.
I don't get any link to where the function was defined like I would if I was describing a normally-defined function. How can I declare where these functions are actually created, i.e., at macro-use?
If my explanation is unclear, refer to the real generate-form
and generate-macros
code; each function is well-documented.