diff options
| author | Lars Ingebrigtsen | 2020-12-21 20:18:57 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2020-12-21 20:18:57 +0100 |
| commit | cf2e8321850f81d9eb0ebc23a4887f12dc3dbfac (patch) | |
| tree | fcfeb0635d9e0d52b6ff9af3ee64e1c66e5d5721 /doc/lispref/strings.texi | |
| parent | b3dec3176673fa99e57e3916b36ea4367d47c0fa (diff) | |
| download | emacs-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.texi | 4 |
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 | |||
| 381 | usual value is @w{@code{"[ \f\t\n\r\v]+"}}. | 381 | usual 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 |
| 385 | Split @var{string} into a list of strings on @var{regexp} boundaries. | 385 | Split @var{string} into a list of strings on @var{regexp} boundaries. |
| 386 | As opposed to @code{split-string}, the boundaries are included in the | 386 | As opposed to @code{split-string}, the boundaries are included in the |
| 387 | result set: | 387 | result 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 |