I've got a few functions in
api-wrap.el that I'll refer to as 'macro code', here simplified to clarify the question:
(generate-form prefix kind &rest args)returns an unevaluated form that would define a new specific function
(generate-macros prefix &rest args)loops over
GET, etc. and defines macros that use
generate-formas 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?