aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2023-08-03 23:41:11 -0400
committerStefan Monnier2023-08-03 23:41:11 -0400
commit27ed565ec6163c499191b62a4cee10d99019aa38 (patch)
treebc196d30be15f97eec11ee8d442fe6854ff7325e
parent0c2152222ad16ba9e68cdb27fc281755ec187620 (diff)
downloademacs-27ed565ec6163c499191b62a4cee10d99019aa38.tar.gz
emacs-27ed565ec6163c499191b62a4cee10d99019aa38.zip
* lisp/emacs-lisp/advice.el (defadvice): Mark as obsolete
-rw-r--r--etc/NEWS4
-rw-r--r--lisp/emacs-lisp/advice.el1
2 files changed, 5 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 7b521f3e6fe..567f19012eb 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -685,6 +685,10 @@ provokes an error if used numerically.
685 685
686* Lisp Changes in Emacs 30.1 686* Lisp Changes in Emacs 30.1
687 687
688** 'defadvice' is marked as obsolete.
689See (info "(elisp)Porting Old Advice") for help converting them
690to use `advice-add` or `define-advice instead.
691
688+++ 692+++
689** New user option 'safe-local-variable-directories'. 693** New user option 'safe-local-variable-directories'.
690This user option names directories in which Emacs will treat all 694This user option names directories in which Emacs will treat all
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el
index 56f0ae2212c..3265809f592 100644
--- a/lisp/emacs-lisp/advice.el
+++ b/lisp/emacs-lisp/advice.el
@@ -3131,6 +3131,7 @@ usage: (defadvice FUNCTION (CLASS NAME [POSITION] [ARGLIST] FLAG...)
3131 [DOCSTRING] [INTERACTIVE-FORM] 3131 [DOCSTRING] [INTERACTIVE-FORM]
3132 BODY...)" 3132 BODY...)"
3133 (declare (doc-string 3) (indent 2) 3133 (declare (doc-string 3) (indent 2)
3134 (obsolete "use advice-add or define-advice" "30.1")
3134 (debug (&define name ;; thing being advised. 3135 (debug (&define name ;; thing being advised.
3135 (name ;; class is [&or "before" "around" "after" 3136 (name ;; class is [&or "before" "around" "after"
3136 ;; "activation" "deactivation"] 3137 ;; "activation" "deactivation"]