diff options
| author | Stefan Kangas | 2023-08-24 00:54:37 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2023-08-24 01:02:08 +0200 |
| commit | cb3731361f0cf4222d39aedcfc5188f0063ebc5e (patch) | |
| tree | 2f705fb5c3be50d2baab123a3d2a0e4e0fe649b7 | |
| parent | f46d6b0b3987ec9e8b99449410ce8301023466bf (diff) | |
| download | emacs-cb3731361f0cf4222d39aedcfc5188f0063ebc5e.tar.gz emacs-cb3731361f0cf4222d39aedcfc5188f0063ebc5e.zip | |
Adjust documentation for defadvice obsoletion
* doc/lispref/functions.texi (Porting Old Advice): Unequivocally say
that 'defadvice' is obsolete.
* doc/emacs/trouble.texi (Coding Standards): Refer to 'advice-add'
instead of the now-obsolete 'defadvice'. (Bug#64757)
* doc/misc/ses.texi (Uses of advice-add in SES): Rename node from
"Uses of defadvice in SES". Remove 'undo-more' entry, since that
advice was deleted in 2007.
| -rw-r--r-- | doc/emacs/trouble.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/functions.texi | 2 | ||||
| -rw-r--r-- | doc/misc/ses.texi | 13 |
3 files changed, 5 insertions, 12 deletions
diff --git a/doc/emacs/trouble.texi b/doc/emacs/trouble.texi index d2e8ac3452a..3a43203619b 100644 --- a/doc/emacs/trouble.texi +++ b/doc/emacs/trouble.texi | |||
| @@ -1514,7 +1514,7 @@ Appendix, elisp, Emacs Lisp Reference}. | |||
| 1514 | @end ifclear | 1514 | @end ifclear |
| 1515 | 1515 | ||
| 1516 | @item | 1516 | @item |
| 1517 | Avoid using @code{defadvice} or @code{with-eval-after-load} for Lisp code | 1517 | Avoid using @code{advice-add} or @code{with-eval-after-load} for Lisp code |
| 1518 | to be included in Emacs. | 1518 | to be included in Emacs. |
| 1519 | 1519 | ||
| 1520 | @item | 1520 | @item |
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi index af116f62973..53525e6b386 100644 --- a/doc/lispref/functions.texi +++ b/doc/lispref/functions.texi | |||
| @@ -2177,7 +2177,7 @@ More specifically, the composition of the two functions behaves like: | |||
| 2177 | @findex defadvice | 2177 | @findex defadvice |
| 2178 | @findex ad-activate | 2178 | @findex ad-activate |
| 2179 | 2179 | ||
| 2180 | A lot of code uses the old @code{defadvice} mechanism, which is largely made | 2180 | A lot of code uses the old @code{defadvice} mechanism, which has been made |
| 2181 | obsolete by the new @code{advice-add}, whose implementation and semantics is | 2181 | obsolete by the new @code{advice-add}, whose implementation and semantics is |
| 2182 | significantly simpler. | 2182 | significantly simpler. |
| 2183 | 2183 | ||
diff --git a/doc/misc/ses.texi b/doc/misc/ses.texi index 15722056f33..c12656fc79e 100644 --- a/doc/misc/ses.texi +++ b/doc/misc/ses.texi | |||
| @@ -1308,20 +1308,13 @@ avoid virus warnings, each function used in a formula needs | |||
| 1308 | (put 'your-function-name 'safe-function t) | 1308 | (put 'your-function-name 'safe-function t) |
| 1309 | @end lisp | 1309 | @end lisp |
| 1310 | 1310 | ||
| 1311 | @node Uses of defadvice in @acronym{SES} | 1311 | @node Uses of advice-add in @acronym{SES} |
| 1312 | @section Uses of defadvice in @acronym{SES} | 1312 | @section Uses of advice-add in @acronym{SES} |
| 1313 | @findex defadvice | 1313 | @findex advice-add |
| 1314 | @findex undo-more | ||
| 1315 | @findex copy-region-as-kill | 1314 | @findex copy-region-as-kill |
| 1316 | @findex yank | 1315 | @findex yank |
| 1317 | 1316 | ||
| 1318 | @table @code | 1317 | @table @code |
| 1319 | @item undo-more | ||
| 1320 | Defines a new undo element format (@var{fun} . @var{args}), which | ||
| 1321 | means ``undo by applying @var{fun} to @var{args}''. For spreadsheet | ||
| 1322 | buffers, it allows undos in the data area even though that's outside | ||
| 1323 | the narrowing. | ||
| 1324 | |||
| 1325 | @item copy-region-as-kill | 1318 | @item copy-region-as-kill |
| 1326 | When copying from the print area of a spreadsheet, treat the region as | 1319 | When copying from the print area of a spreadsheet, treat the region as |
| 1327 | a rectangle and attach each cell's formula and printer as 'ses | 1320 | a rectangle and attach each cell's formula and printer as 'ses |