aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/strings.texi
diff options
context:
space:
mode:
authorLars Ingebrigtsen2020-12-21 20:18:57 +0100
committerLars Ingebrigtsen2020-12-21 20:18:57 +0100
commitcf2e8321850f81d9eb0ebc23a4887f12dc3dbfac (patch)
treefcfeb0635d9e0d52b6ff9af3ee64e1c66e5d5721 /doc/lispref/strings.texi
parentb3dec3176673fa99e57e3916b36ea4367d47c0fa (diff)
downloademacs-cf2e8321850f81d9eb0ebc23a4887f12dc3dbfac.tar.gz
emacs-cf2e8321850f81d9eb0ebc23a4887f12dc3dbfac.zip
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
381usual value is @w{@code{"[ \f\t\n\r\v]+"}}. 381usual value is @w{@code{"[ \f\t\n\r\v]+"}}.
382@end defvar 382@end defvar
383 383
384@defun slice-string string regexp 384@defun string-slice string regexp
385Split @var{string} into a list of strings on @var{regexp} boundaries. 385Split @var{string} into a list of strings on @var{regexp} boundaries.
386As opposed to @code{split-string}, the boundaries are included in the 386As opposed to @code{split-string}, the boundaries are included in the
387result set: 387result set:
388 388
389@example 389@example
390(slice-string " two words " " +") 390(string-slice " two words " " +")
391 @result{} (" two" " words" " ") 391 @result{} (" two" " words" " ")
392@end example 392@end example
393@end defun 393@end defun