1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 14:30:50 -08:00

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.
This commit is contained in:
Lars Ingebrigtsen 2020-12-21 20:18:57 +01:00
parent b3dec31766
commit cf2e832185
5 changed files with 12 additions and 12 deletions

View file

@ -151,9 +151,9 @@ There can be any number of :example/:result elements."
:eval (split-string "foo bar")
:eval (split-string "|foo|bar|" "|")
:eval (split-string "|foo|bar|" "|" t))
(slice-string
:eval (slice-string "foo-bar" "-")
:eval (slice-string "foo-bar--zot-" "-+"))
(string-slice
:eval (string-slice "foo-bar" "-")
:eval (string-slice "foo-bar--zot-" "-+"))
(string-lines
:eval (string-lines "foo\n\nbar")
:eval (string-lines "foo\n\nbar" t))