bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55811: 29.0.50; No flymake diagnostics for no-byte-compile files


From: Stefan Monnier
Subject: bug#55811: 29.0.50; No flymake diagnostics for no-byte-compile files
Date: Sun, 05 Jun 2022 19:09:17 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> I stumbled onto a related thing earlier tonight -- I said `M-x
> byte-compile-file RET RET' and then it did nothing -- because of the
> no-byte-compile.
>
> I'm not sure whether I agree with that -- if I've explicitly asked Emacs
> to do it, I think that should override the cookie.  Or at least issue a
> message of some sort.

That's a slightly different case from mine: the `no-byte-compile` is
often used either because the user really only ever wants to load the
`.el` or because the compilation is known to fail (e.g. because it
requires macros defined in a package that's not marked as a strict
dependency, very common in tests).

Generating a `.elc` file explicitly with `M-x byte-compile-file` could
be a problem if subsequent "normal" use will fail to update that `.elc`
because of the `no-byte-compile`.

So, I think `byte-compile-file` should not silently override the
`no-byte-compile`.  It could prompt to choose between "really compile"
and "compile but don't generate the .elc file".


        Stefan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]