Subject: Re: bug#55097: 29.0.50; flymake-show-buffer-diagnostics does not enable flymake-mode

From: Lars Ingebrigtsen <[email-masked]>
Date: Mon, 25 Apr 2022 10:07:27 +0200

No Wayman <[email-masked]> writes:

> flymake-show-buffer-diagnostics will display an empty diagnostics
> buffer if flymake-mode is not enabled in that buffer. This is
> confusing, as it makes it appear as if there are no issues, when that
> may not be the case.
> The command should either signal a user-error or (IMO better) enable
> flymake mode in the buffer if it is not already enabled.

Commands tied to certain modes aren't supposed to be used outside of
those modes, and will usually give nonsensical results if you do that.
So this is one of those "well, don't do that, then" situations.

But on the other hand, I can see that this is a command that people
might be calling spuriously, so I've made it error out in these
situations.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no