[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#50898: 28.0.50; with-suppressed-warnings doesn't always work
From: |
Lars Ingebrigtsen |
Subject: |
bug#50898: 28.0.50; with-suppressed-warnings doesn't always work |
Date: |
Wed, 01 Dec 2021 04:31:12 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> 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