Greetings. It looks like this conversation didn't end up with a solution. This is annoying enough to me that I'd like to rejuvenate the discussion. Anyone who adds the cookie to early-init.el and init.el, for example, misses out on flymake diagnostics.
How about adding an optional lint argument to byte-compile-file thatĀ elisp-flymake--batch-compile-for-flymake would specify when calling b-c-f? b-c-f, with lint specified, would ignore no-byte-compile for that call. Looks like a three-line change. I'm sure I'm missing some subtleties? I could submit a patch for this, if people agree.
-Stephane