all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Julian Gilbey <julian-gnu@d-and-j.net>
Cc: 44864@debbugs.gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>
Subject: bug#44864: 27.1; advice.el: ad-with-originals deprecated, but no advice on replacement
Date: Thu, 26 Nov 2020 11:45:43 +0100	[thread overview]
Message-ID: <874klcxup4.fsf@gnus.org> (raw)
In-Reply-To: <E1khqf4-00B8ID-Jc@erdos.d-and-j.net> (Julian Gilbey's message of "Wed, 25 Nov 2020 09:00:26 +0000")

Julian Gilbey <julian-gnu@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@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





  reply	other threads:[~2020-11-26 10:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-25  9:00 bug#44864: 27.1; advice.el: ad-with-originals deprecated, but no advice on replacement Julian Gilbey
2020-11-26 10:45 ` Lars Ingebrigtsen [this message]
2020-11-26 15:39 ` Stefan Monnier
2020-11-26 17:09   ` Julian Gilbey
2020-11-26 17:54     ` Stefan Monnier
2021-08-27 15:36       ` Lars Ingebrigtsen
2021-09-13 15:29         ` Julian Gilbey
2021-10-14 15:11 ` Lars Ingebrigtsen
2021-10-14 15:43   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874klcxup4.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=44864@debbugs.gnu.org \
    --cc=julian-gnu@d-and-j.net \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.