diff options
author | Juri Linkov <juri@jurta.org> | 2007-11-10 21:50:49 +0000 |
---|---|---|
committer | Juri Linkov <juri@jurta.org> | 2007-11-10 21:50:49 +0000 |
commit | fe2848054d42348824e774f9d916b64b1d51e39d (patch) | |
tree | bd7308795959da73220d1c7734b679d4f25c1355 /doc/lispref/searching.texi | |
parent | 7abe68aa191f9874d41e7d41274ee4fb9a793601 (diff) | |
download | emacs-fe2848054d42348824e774f9d916b64b1d51e39d.tar.gz |
(Replacing Match): Describe new `match-substitute-replacement'.
Diffstat (limited to 'doc/lispref/searching.texi')
-rw-r--r-- | doc/lispref/searching.texi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi index 91b57ea4e4f..559f93ef8e3 100644 --- a/doc/lispref/searching.texi +++ b/doc/lispref/searching.texi @@ -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 |