Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
39d0bf74
Commit
39d0bf74
authored
Dec 01, 2007
by
Richard M. Stallman
Browse files
(syms_of_search) <inhibit-changing-match-data>: Doc fix.
parent
c2fd78e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
etc/NEWS
etc/NEWS
+3
-0
src/ChangeLog
src/ChangeLog
+4
-0
src/search.c
src/search.c
+4
-3
No files found.
etc/NEWS
View file @
39d0bf74
...
...
@@ -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.
...
...
src/ChangeLog
View file @
39d0bf74
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.
...
...
src/search.c
View file @
39d0bf74
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment