From 290b521f7429bed6656a967da204205bbd94c0a3 Mon Sep 17 00:00:00 2001 From: Filipp Gunbin Date: Wed, 7 Jul 2021 21:51:57 +0300 Subject: [PATCH 2/2] ; * doc/lispref/text.texi (Substitution): Add subst-char-in-string (Bug#49420) --- doc/lispref/text.texi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 0c87a19fa1..f6484c4d37 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi @@ -4428,6 +4428,16 @@ Substitution @end example @end defun + +@defun subst-char-in-string fromchar tochar string &optional inplace +@cindex replace characters in string +This function replaces all occurences of the character @var{fromchar} +with @var{tochar} in @var{string}. Unless @var{inplace} is non-nil, +substitution occurs in a copy of @var{string}. In any case, the +function returns the resulting string. Both characters must have the +same length of multi-byte form. +@end defun + @deffn Command translate-region start end table This function applies a translation table to the characters in the buffer between positions @var{start} and @var{end}. -- 2.32.0