emres / dotemacs

My .emacs file
GNU General Public License v3.0
2 stars 0 forks source link

Warning: ‘defadvice’ is an obsolete macro (as of 30.1); use ‘advice-add’ or ‘define-advice’ #27

Open emres opened 8 months ago

emres commented 8 months ago

After start-up, *Messages* buffer has the following warning: Warning: ‘defadvice’ is an obsolete macro (as of 30.1); use ‘advice-add’ or ‘define-advice’.

This is caused by the following line: https://github.com/emres/dotemacs/blob/a54415655c608ddfddc7f495a1e97abebb30b165/.emacs.el#L544

Relevant information from the official documentation:

emres commented 8 months ago

I'm getting this warning in the Emacs snapshot, that is

(emacs-version)
"GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0)
 of 2023-12-05"

Therefore, this is not a priority at the moment, because the current stable version of GNU Emacs is 29.1, released on 30 Jul 2023, but it'll be good to get prepared.

Currently the development version of Emacs also says the following for its defadvice help: This macro is obsolete since 30.1; use advice-add or define-advice

emres commented 6 months ago

Also see the following Emacs Stack Exchange post