summaryrefslogtreecommitdiff
path: root/doc/lispref/strings.texi
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-12-21 20:18:57 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2020-12-21 20:18:57 +0100
commitcf2e8321850f81d9eb0ebc23a4887f12dc3dbfac (patch)
treefcfeb0635d9e0d52b6ff9af3ee64e1c66e5d5721 /doc/lispref/strings.texi
parentb3dec3176673fa99e57e3916b36ea4367d47c0fa (diff)
downloademacs-cf2e8321850f81d9eb0ebc23a4887f12dc3dbfac.tar.gz
Rename slice-string to string-slice
* lisp/emacs-lisp/subr-x.el (string-slice): Rename from slice-string. * doc/lispref/strings.texi (Creating Strings): Ditto.
Diffstat (limited to 'doc/lispref/strings.texi')
-rw-r--r--doc/lispref/strings.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi
index 958ae4c0a15..c65d839a028 100644
--- a/doc/lispref/strings.texi
+++ b/doc/lispref/strings.texi
@@ -381,13 +381,13 @@ The default value of @var{separators} for @code{split-string}. Its
usual value is @w{@code{"[ \f\t\n\r\v]+"}}.
@end defvar
-@defun slice-string string regexp
+@defun string-slice string regexp
Split @var{string} into a list of strings on @var{regexp} boundaries.
As opposed to @code{split-string}, the boundaries are included in the
result set:
@example
-(slice-string " two words " " +")
+(string-slice " two words " " +")
@result{} (" two" " words" " ")
@end example
@end defun