In two of my packages I have a macro where the body depends on a variable defined in a defcustom
form.
When installing the packages from Melpa, the byte-compilation ends with:
Error: Symbol's value as variable is void: my-defcustom-variable
Then, manually byte-compiling the file by opening it in a buffer works.
I tried with an autoload
cookie but still have the same behavior.
I'm missing something important here.
defcustom
in a macro body is a strange thing to do, for thedefcustom
will only ever come into effect during byte-compilation (where the macro is expanded). This doesn't seem to make much sense to me.