Issue byte-compiling replacements for standard packages?
I really want to use the latest cc-mode that Alan maintains in his Mercurial repo, rather than whatever comes with Emacs. For a long time I was managing it by hand but now I'm using the most-excellent quelpa to handle it all for me, like magic:
(use-package cc-mode
:ensure t
:quelpa (cc-mode :fetcher hg
:url "http://hg.code.sf.net/p/cc-mode/cc-mode"
:upgrade t))
This is very cool, except for one thing: if something in my init.el loads cc-mode before quelpa builds this package then it doesn't compile properly: the default cc-mode interferes with the byte-compilation and I get warnings every time I visit a C++ file.
I've worked around this by putting the above right up at the top of init.el, but I wonder if there's some more reliable way to guard against this. I don't know exactly how quelpa performs its byte-compilation: cc-mode comes with a makefile which invokes emacs -q -no-site-file -batch
to do byte-compilation but I suppose quelpa is not using that makefile.