[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lispref/searching.texi
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] Changes to emacs/lispref/searching.texi |
Date: |
Fri, 19 May 2006 19:47:14 +0000 |
Index: emacs/lispref/searching.texi
diff -u emacs/lispref/searching.texi:1.73 emacs/lispref/searching.texi:1.74
--- emacs/lispref/searching.texi:1.73 Wed May 17 22:17:09 2006
+++ emacs/lispref/searching.texi Fri May 19 19:47:14 2006
@@ -1264,6 +1264,12 @@
expressions can have subexpressions---after a simple string search, the
only information available is about the entire match.
+ Every successful search sets the match data. Therefore, you should
+query the match data immediately after searching, before calling any
+other function that might perform another search. Alternatively, you
+may save and restore the match data (@pxref{Saving Match Data}) around
+the call to functions that could perform another search.
+
A search which fails may or may not alter the match data. In the
past, a failing search did not do this, but we may change it in the
future. So don't try to rely on the value of the match data after