I am trying to make sure a package that is installed from Melpa (
org-ref) byte compiles correctly, and a typical issue is related to the use of macros. For example, if I use
org-with-wide-buffer which is a macro defined in
org-macs.el I need to make sure to put
(eval-and-compile (require 'org-macs)) in it so the package works as expected from Melpa.
The tricky thing is finding all the macro calls, so I know when to do this. I wondered if there is a way to find these in an elisp file. It seems like one just walks through all the s-exps and checks if the
(macrop (car sexp)) is non-nil, and print it or something so I can figure out what to put at the top. Does something like this already exist?
Or is there some way to test if there are uncompiled macro calls? I already can cleanly compile the package; the issues come up when using the functions.