]> git.eshelyaron.com Git - emacs.git/commitdiff
(syms_of_search) <inhibit-changing-match-data>: Doc fix.
authorRichard M. Stallman <rms@gnu.org>
Sat, 1 Dec 2007 06:59:12 +0000 (06:59 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 1 Dec 2007 06:59:12 +0000 (06:59 +0000)
etc/NEWS
src/ChangeLog
src/search.c

index 609695773e38e0dfc0e2f5fd2e6036f978dd1d1d..2e8c4b0ebf28e738cd58a42f8a6bcd3d540759c5 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -395,6 +395,9 @@ because they clash with commands provided by dirtrack.el.  Use
 ** `beginning-of-defun-function' now takes one argument, the count
    given to `beginning-of-defun'.
 
+** The variable `inhibit-changing-match-data', if non-nil, prevents the
+search and match primitives from changing the match data.
+
 +++
 ** New function `match-substitute-replacement' returns the result of
 `replace-match' without actually using it in the buffer.
index 0c9f035e30a6b415fbe54ddbd6552296a6a6b3c4..7a5d7fcf93f7cdf7802d15b5e886cffcd5d260c6 100644 (file)
@@ -1,3 +1,7 @@
+2007-12-01  Richard Stallman  <rms@gnu.org>
+
+       * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
+
 2007-11-30  Jason Rumney  <jasonr@gnu.org>
 
        * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
index 29def81c3ebe0dea2e136deea1f83698068d11fe..3c91d3cce9209d5d3f047801f896ef1bfd565b97 100644 (file)
@@ -3239,9 +3239,10 @@ A value of nil (which is the normal value) means treat spaces literally.  */);
 
   DEFVAR_LISP ("inhibit-changing-match-data", &Vinhibit_changing_match_data,
       doc: /* Internal use only.
-If non-nil, the match data will not be changed during call to searching or
-matching functions, such as `looking-at', `string-match', `re-search-forward'
-etc.  */);
+If non-nil, the primitive searching and matching functions
+such as `looking-at', `string-match', `re-search-forward', etc.,
+do not set the match data.  The proper way to use this variable
+is to bind it with `let' around a small expression.  */);
   Vinhibit_changing_match_data = Qnil;
 
   defsubr (&Slooking_at);