Variable: inhibit-changing-match-data

inhibit-changing-match-data is a variable defined in search.c.

Value

nil

Documentation

Internal use only.

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.

Probably introduced at or before Emacs version 23.1.

Source Code

// Defined in /usr/src/emacs/src/search.c
  DEFVAR_LISP ("inhibit-changing-match-data", Vinhibit_changing_match_data,
      doc: /* Internal use only.
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.  */);