aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Gunbin2021-07-10 19:00:01 +0200
committerLars Ingebrigtsen2021-07-10 19:00:01 +0200
commitb7a495f8d032e7c60f490a4a822f854707f02275 (patch)
treefe41d06b109194fd80a0870d5c116964e38a19c6
parentda7dbfdf6858c4644a8d082639edd8a532e47c42 (diff)
downloademacs-b7a495f8d032e7c60f490a4a822f854707f02275.tar.gz
emacs-b7a495f8d032e7c60f490a4a822f854707f02275.zip
doc/lispref/text.texi (Substitution): Add subst-char-in-string
* doc/lispref/text.texi (Substitution): Document subst-char-in-string (bug#49420).
-rw-r--r--doc/lispref/text.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi
index 0c87a19fa14..71a8efe3622 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -4428,6 +4428,16 @@ ThXs Xs the contents of the buffer before.
4428@end example 4428@end example
4429@end defun 4429@end defun
4430 4430
4431
4432@defun subst-char-in-string fromchar tochar string &optional inplace
4433@cindex replace characters in string
4434This function replaces all occurences of the character @var{fromchar}
4435with @var{tochar} in @var{string}. Unless @var{inplace} is non-nil,
4436substitution occurs in a copy of @var{string}. In any case, the
4437function returns the resulting string. Both characters must have the
4438same multi-byte length.
4439@end defun
4440
4431@deffn Command translate-region start end table 4441@deffn Command translate-region start end table
4432This function applies a translation table to the characters in the 4442This function applies a translation table to the characters in the
4433buffer between positions @var{start} and @var{end}. 4443buffer between positions @var{start} and @var{end}.