Forgot to include an example: See attached foo.el and try the following compilations: emacs -batch -q -f batch-byte-compile foo.el 20:07:00 tmp $ No warnings. 20:08:00 tmp $ emacs -batch -q -no-site-file -f package-initialize -f batch-byte-compile foo.el Package cl is deprecated 20:08:23 tmp $