Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
fe284805
Commit
fe284805
authored
Nov 10, 2007
by
Juri Linkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Replacing Match): Describe new `match-substitute-replacement'.
parent
7abe68aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
doc/lispref/ChangeLog
doc/lispref/ChangeLog
+5
-0
doc/lispref/searching.texi
doc/lispref/searching.texi
+10
-0
No files found.
doc/lispref/ChangeLog
View file @
fe284805
2007
-
11
-
10
Paul
Pogonyshev
<
pogonyshev
@
gmx
.
net
>
*
searching
.
texi
(
Replacing
Match
):
Describe
new
`
match
-
substitute
-
replacement
'.
2007-10-31 Richard Stallman <rms@gnu.org>
* strings.texi (Creating Strings): Null strings from concat not unique.
...
...
doc/lispref/searching.texi
View file @
fe284805
...
...
@@ -1260,6 +1260,16 @@ calling @code{replace-match} with 1 as @var{subexp} means to replace
just the text that matched @samp{\(ba*r\)}.
@end defun
@defun match-substitute-replacement replacement &optional fixedcase literal string subexp
This function returns the text that would be inserted into the buffer
by @code{replace-match}, but without modifying the buffer. It is
useful if you want to present the user with actual replacement result,
with constructs like @samp{\@var{n}} or @samp{\&} substituted with
matched groups. Arguments @var{replacement} and optional
@var{fixedcase}, @var{literal}, @var{string} and @var{subexp} have the
same meaning as for @code{replace-match}.
@end defun
@node Simple Match Data
@subsection Simple Match Data Access
...
...
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