aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2021-07-11 13:15:34 +0300
committerEli Zaretskii2021-07-11 13:15:34 +0300
commit5b9daab3a745577441b0966d0b8e2bb261cdb976 (patch)
treea4342d30a8e194e9e13cec3e40b2d334f16c6a4b
parent3b29afa68070f3040f08fec0077213f9a15d1adc (diff)
downloademacs-5b9daab3a745577441b0966d0b8e2bb261cdb976.tar.gz
emacs-5b9daab3a745577441b0966d0b8e2bb261cdb976.zip
; * doc/lispref/text.texi (Substitution): Fix a recent change.
-rw-r--r--doc/lispref/text.texi11
1 files 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.
4399@cindex replace characters 4399@cindex replace characters
4400This function replaces all occurrences of the character @var{old-char} 4400This function replaces all occurrences of the character @var{old-char}
4401with the character @var{new-char} in the region of the current buffer 4401with the character @var{new-char} in the region of the current buffer
4402defined by @var{start} and @var{end}. 4402defined by @var{start} and @var{end}. Both characters must have the
4403same length of their multibyte form.
4403 4404
4404@cindex undo avoidance 4405@cindex undo avoidance
4405If @var{noundo} is non-@code{nil}, then @code{subst-char-in-region} does 4406If @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.
4432@defun subst-char-in-string fromchar tochar string &optional inplace 4433@defun subst-char-in-string fromchar tochar string &optional inplace
4433@cindex replace characters in string 4434@cindex replace characters in string
4434This function replaces all occurences of the character @var{fromchar} 4435This function replaces all occurences of the character @var{fromchar}
4435with @var{tochar} in @var{string}. Unless @var{inplace} is non-nil, 4436with @var{tochar} in @var{string}. By default, substitution occurs in
4436substitution occurs in a copy of @var{string}. In any case, the 4437a copy of @var{string}, but if the optional argument @var{inplace} is
4437function returns the resulting string. Both characters must have the 4438non-@code{nil}, the function modifies the @var{string} itself. In any
4438same multi-byte length. 4439case, the function returns the resulting string.
4439@end defun 4440@end defun
4440 4441
4441@deffn Command translate-region start end table 4442@deffn Command translate-region start end table