aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/searching.texi6
2 files changed, 11 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index f2206cd78ec..807313c8632 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12011-07-03 Tobias C. Rittweiler <tcr@freebits.de> (tiny change)
2
3 * searching.texi (Match Data): Note that match data can be
4 overwritten by most functions (bug#2499).
5
12011-07-03 Lars Magne Ingebrigtsen <larsi@gnus.org> 62011-07-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 7
3 * strings.texi (Formatting Strings): Clarify what the "-" and "0" 8 * strings.texi (Formatting Strings): Clarify what the "-" and "0"
diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi
index 27b089f75b6..6272301dbb4 100644
--- a/doc/lispref/searching.texi
+++ b/doc/lispref/searching.texi
@@ -1207,6 +1207,12 @@ search you wish to refer back to and the use of the match data. If you
1207can't avoid another intervening search, you must save and restore the 1207can't avoid another intervening search, you must save and restore the
1208match data around it, to prevent it from being overwritten. 1208match data around it, to prevent it from being overwritten.
1209 1209
1210 Notice that all functions are allowed to overwrite the match data
1211unless they're explicitly documented not to do so. A consequence is
1212that functions that are run implictly in the background
1213(@pxref{Timers}, and @ref{Idle Timers}) should likely save and restore
1214the match data explicitly.
1215
1210@menu 1216@menu
1211* Replacing Match:: Replacing a substring that was matched. 1217* Replacing Match:: Replacing a substring that was matched.
1212* Simple Match Data:: Accessing single items of match data, 1218* Simple Match Data:: Accessing single items of match data,