From 5b9daab3a745577441b0966d0b8e2bb261cdb976 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 11 Jul 2021 13:15:34 +0300 Subject: [PATCH] ; * doc/lispref/text.texi (Substitution): Fix a recent change. --- doc/lispref/text.texi | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 71a8efe3622..b71748c0832 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi @@ -4399,7 +4399,8 @@ based on their character codes. @cindex replace characters This function replaces all occurrences of the character @var{old-char} with the character @var{new-char} in the region of the current buffer -defined by @var{start} and @var{end}. +defined by @var{start} and @var{end}. Both characters must have the +same length of their multibyte form. @cindex undo avoidance If @var{noundo} is non-@code{nil}, then @code{subst-char-in-region} does @@ -4432,10 +4433,10 @@ ThXs Xs the contents of the buffer before. @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 multi-byte length. +with @var{tochar} in @var{string}. By default, substitution occurs in +a copy of @var{string}, but if the optional argument @var{inplace} is +non-@code{nil}, the function modifies the @var{string} itself. In any +case, the function returns the resulting string. @end defun @deffn Command translate-region start end table -- 2.39.2