diff options
| author | Stefan Monnier | 2023-08-03 23:41:11 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2023-08-03 23:41:11 -0400 |
| commit | 27ed565ec6163c499191b62a4cee10d99019aa38 (patch) | |
| tree | bc196d30be15f97eec11ee8d442fe6854ff7325e | |
| parent | 0c2152222ad16ba9e68cdb27fc281755ec187620 (diff) | |
| download | emacs-27ed565ec6163c499191b62a4cee10d99019aa38.tar.gz emacs-27ed565ec6163c499191b62a4cee10d99019aa38.zip | |
* lisp/emacs-lisp/advice.el (defadvice): Mark as obsolete
| -rw-r--r-- | etc/NEWS | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/advice.el | 1 |
2 files changed, 5 insertions, 0 deletions
| @@ -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. | ||
| 689 | See (info "(elisp)Porting Old Advice") for help converting them | ||
| 690 | to 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'. |
| 690 | This user option names directories in which Emacs will treat all | 694 | This 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"] |