Subject: bug#50898: 28.0.50; with-suppressed-warnings doesn't always work

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 01 Dec 2021 04:31:12 +0100

Stefan Monnier <[email-masked]> writes:

>> In what cases does that happen?  I tried both an incremental and
>> a bootstrap build.
>
>     emacs -Q
>     (with-suppressed-warnings ((obsolete foo)) (define-child-mode
> sm-foo c-mode "hello"))
>     C-j

Right.  But instead of duplicating the logic, autoloading
byte-compile-warning-enabled-p would fix that problem.

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