GNU bug report logs - #55811
29.0.50; No flymake diagnostics for no-byte-compile files

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Sun, 5 Jun 2022 20:24:02 UTC

Severity: normal

Found in version 29.0.50

Full log


Message #56 received at 55811 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: João Távora <joaotavora <at> gmail.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, Ship Mints <shipmints <at> gmail.com>,
 55811 <at> debbugs.gnu.org
Subject: Re: bug#55811: 29.0.50; No flymake diagnostics for no-byte-compile
 files
Date: Tue, 21 Jan 2025 06:01:28 -0500
> OK.  Try this "100% untested patch" (TM) then:
>
> diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
> index 70826b4c3a..b99007c938 100644
> --- a/lisp/progmodes/elisp-mode.el
> +++ b/lisp/progmodes/elisp-mode.el
> @@ -2152,7 +2152,9 @@ elisp-flymake--batch-compile-for-flymake
>                    collected)
>              t)))
>      (unwind-protect
> -        (byte-compile-file file)
> +        (progn
> +          (setq-local no-byte-compile nil)
> +          (byte-compile-file file))
>        (ignore-errors
>          (kill-buffer byte-compile-log-buffer)))
>      (prin1 :elisp-flymake-output-start)

I didn't test it, but if this works, it looks good to me,


        Stefan





This bug report was last modified 133 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.