[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Howto: Silence defadvice is an obsolete macro warning
From: |
Stefan Kangas |
Subject: |
Re: Howto: Silence defadvice is an obsolete macro warning |
Date: |
Thu, 24 Aug 2023 13:48:58 +0200 |
T.V Raman <raman@google.com> writes:
> How do I turn off /silence this warning for the present?
I don't necessarily recommend it, but if you really want to you could use:
(put 'defadvice 'byte-obsolete-info nil)
> Also, what's the rationale behind this warning; asking because I have
> a lot of code using defadvice and migrating to the new define-advice
> or other alternatives will take a lot of work
I believe the rationale is explained in `(elisp) Porting Old Advice',
and discussions in the mailing list archive.