1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-16 17:19:41 +00:00

* searching.texi (Match Data): Note that match data can be

overwritten by most functions.

Fixes: debbugs:2499
This commit is contained in:
Tobias C. Rittweiler 2011-07-03 20:44:53 +02:00 committed by Lars Magne Ingebrigtsen
parent 9a51c6c761
commit d2a6c43b6f
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-07-03 Tobias C. Rittweiler <tcr@freebits.de> (tiny change)
* searching.texi (Match Data): Note that match data can be
overwritten by most functions (bug#2499).
2011-07-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
* strings.texi (Formatting Strings): Clarify what the "-" and "0"

View File

@ -1207,6 +1207,12 @@ search you wish to refer back to and the use of the match data. If you
can't avoid another intervening search, you must save and restore the
match data around it, to prevent it from being overwritten.
Notice that all functions are allowed to overwrite the match data
unless they're explicitly documented not to do so. A consequence is
that functions that are run implictly in the background
(@pxref{Timers}, and @ref{Idle Timers}) should likely save and restore
the match data explicitly.
@menu
* Replacing Match:: Replacing a substring that was matched.
* Simple Match Data:: Accessing single items of match data,