* lisp/emacs-lisp/advice.el (defadvice): Mark as obsolete

This commit is contained in:
Stefan Monnier 2023-08-03 23:41:11 -04:00
parent 0c2152222a
commit 27ed565ec6
2 changed files with 5 additions and 0 deletions

View file

@ -685,6 +685,10 @@ provokes an error if used numerically.
* Lisp Changes in Emacs 30.1
** 'defadvice' is marked as obsolete.
See (info "(elisp)Porting Old Advice") for help converting them
to use `advice-add` or `define-advice instead.
+++
** New user option 'safe-local-variable-directories'.
This user option names directories in which Emacs will treat all

View file

@ -3131,6 +3131,7 @@ usage: (defadvice FUNCTION (CLASS NAME [POSITION] [ARGLIST] FLAG...)
[DOCSTRING] [INTERACTIVE-FORM]
BODY...)"
(declare (doc-string 3) (indent 2)
(obsolete "use advice-add or define-advice" "30.1")
(debug (&define name ;; thing being advised.
(name ;; class is [&or "before" "around" "after"
;; "activation" "deactivation"]