unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Howto: Silence defadvice is an obsolete macro warning
@ 2023-08-24  2:32 T.V Raman
  2023-08-24 11:48 ` Stefan Kangas
  0 siblings, 1 reply; 3+ messages in thread
From: T.V Raman @ 2023-08-24  2:32 UTC (permalink / raw)
  To: emacs-devel

I use Emacs built from Git@Head and Emacs now produces a "defadvice is
an obsolete macro" during compilation.

How do I turn off /silence this warning  for the present?

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

-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮

--

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Howto: Silence defadvice is an obsolete macro warning
  2023-08-24  2:32 Howto: Silence defadvice is an obsolete macro warning T.V Raman
@ 2023-08-24 11:48 ` Stefan Kangas
  2023-08-24 14:43   ` T.V Raman
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Kangas @ 2023-08-24 11:48 UTC (permalink / raw)
  To: T.V Raman; +Cc: emacs-devel

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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Howto: Silence defadvice is an obsolete macro warning
  2023-08-24 11:48 ` Stefan Kangas
@ 2023-08-24 14:43   ` T.V Raman
  0 siblings, 0 replies; 3+ messages in thread
From: T.V Raman @ 2023-08-24 14:43 UTC (permalink / raw)
  To: stefankangas; +Cc: emacs-devel

Thanks; in my case emacspeak has a large number of defadvice forms
and warnings for each of them gets too noisy. Orthogonally, I do need
to move to the new advice but that is a complex project of its own.
-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮

--

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-08-24 14:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-24  2:32 Howto: Silence defadvice is an obsolete macro warning T.V Raman
2023-08-24 11:48 ` Stefan Kangas
2023-08-24 14:43   ` T.V Raman

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).