When byte-compiling multiple eLisp files in a package, the compiler output is cluttered with the warning Warning: function `position' from cl package called at runtime . I understand, although I do not agree with the policy in the cl package. But this makes it difficult to identify other, more useful warnings. So, while there is no real way to avoid a warning, is there a way to selectively turn off all warnings of a particular pattern?
EDIT: (attached example)
create a file called doodles.el
(require 'cl) (eval-when-compile (require 'cl)) (dotimes (i 1) (position ?\x "x"))
Mx byte-compile-file RET doodles.el
Switch to the *Compile-Log* buffer:
doodles.el:1:1:Warning: cl package required at runtime
this is what you get.
user797257
source share