GNU bug report logs -
#44864
27.1; advice.el: ad-with-originals deprecated, but no advice on replacement
Previous Next
Reported by: Julian Gilbey <julian-gnu <at> d-and-j.net>
Date: Wed, 25 Nov 2020 13:10:01 UTC
Severity: normal
Tags: moreinfo, wontfix
Found in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Julian Gilbey <julian-gnu <at> d-and-j.net> writes:
> (ad-with-originals (hack-one-local-variable)
> (multi-hack-local-variables))
> (multi-hack-local-variables))
>
> The ad-with-originals function has been marked as obsolete in version
> 27.1 of emacs, so I now get a warning message every time I load
> emacs. But there is no advice on what to do instead.
The macro was obsoleted by this commit, so perhaps Stefan (added to the
Ccs) has some insight here.
commit 458948189e56a110739ff9002236d269b8382293
Author: Stefan Monnier <monnier <at> iro.umontreal.ca>
AuthorDate: Mon Sep 17 14:02:05 2018 -0400
* lisp/emacs-lisp/advice.el: Only use defmacro when needed
(ad-get-advice-info): Mark it inlinable.
(ad-get-advice-info-macro): Make it an obsolete alias.
(ad-copy-advice-info, ad-is-advised, ad-get-advice-info-field)
(ad-find-advice, ad-macrofy, ad-lambdafy, ad-lambda-p, ad-advice-p)
(ad-compiled-p, ad-compiled-code, ad-get-cache-definition)
(ad-get-cache-id, ad-set-cache): Turn macros into defsubsts.
(ad-defadvice-flags): Make it into a plain list.
(ad-set-advice-info-field): Apply a bit of CSE.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 275 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.