aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2023-08-24 00:54:37 +0200
committerStefan Kangas2023-08-24 01:02:08 +0200
commitcb3731361f0cf4222d39aedcfc5188f0063ebc5e (patch)
tree2f705fb5c3be50d2baab123a3d2a0e4e0fe649b7
parentf46d6b0b3987ec9e8b99449410ce8301023466bf (diff)
downloademacs-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.texi2
-rw-r--r--doc/lispref/functions.texi2
-rw-r--r--doc/misc/ses.texi13
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
1517Avoid using @code{defadvice} or @code{with-eval-after-load} for Lisp code 1517Avoid using @code{advice-add} or @code{with-eval-after-load} for Lisp code
1518to be included in Emacs. 1518to 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
2180A lot of code uses the old @code{defadvice} mechanism, which is largely made 2180A lot of code uses the old @code{defadvice} mechanism, which has been made
2181obsolete by the new @code{advice-add}, whose implementation and semantics is 2181obsolete by the new @code{advice-add}, whose implementation and semantics is
2182significantly simpler. 2182significantly 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
1320Defines a new undo element format (@var{fun} . @var{args}), which
1321means ``undo by applying @var{fun} to @var{args}''. For spreadsheet
1322buffers, it allows undos in the data area even though that's outside
1323the narrowing.
1324
1325@item copy-region-as-kill 1318@item copy-region-as-kill
1326When copying from the print area of a spreadsheet, treat the region as 1319When copying from the print area of a spreadsheet, treat the region as
1327a rectangle and attach each cell's formula and printer as 'ses 1320a rectangle and attach each cell's formula and printer as 'ses