[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 5b9daab: ; * doc/lispref/text.texi (Substitution): Fix a recent c
From: |
Eli Zaretskii |
Subject: |
master 5b9daab: ; * doc/lispref/text.texi (Substitution): Fix a recent change. |
Date: |
Sun, 11 Jul 2021 06:16:15 -0400 (EDT) |
branch: master
commit 5b9daab3a745577441b0966d0b8e2bb261cdb976
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
; * 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 71a8efe..b71748c 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 5b9daab: ; * doc/lispref/text.texi (Substitution): Fix a recent change.,
Eli Zaretskii <=