aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2022-09-09 23:51:05 +0200
committerStefan Kangas2022-09-10 01:12:29 +0200
commite6dc0cf2d399c907f345e11eeaa4e5d08fc4d7b6 (patch)
tree44fcbffcf55c72bf06a13041dc4682d8ff4602db
parent3ddf1a920d267794fff8d311aead43525167bab4 (diff)
downloademacs-e6dc0cf2d399c907f345e11eeaa4e5d08fc4d7b6.tar.gz
emacs-e6dc0cf2d399c907f345e11eeaa4e5d08fc4d7b6.zip
* lisp/subr.el (string-split): New alias for split-string.
-rw-r--r--etc/NEWS2
-rw-r--r--lisp/subr.el2
2 files changed, 4 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 97a476ae08e..35b74aa7de6 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -3679,6 +3679,8 @@ to preserve the old behavior, apply
3679'(take N LIST)' returns the first N elements of LIST; 'ntake' does 3679'(take N LIST)' returns the first N elements of LIST; 'ntake' does
3680the same but works by modifying LIST destructively. 3680the same but works by modifying LIST destructively.
3681 3681
3682---
3683** 'string-split' is now an alias for 'split-string'.
3682 3684
3683 3685
3684* Changes in Emacs 29.1 on Non-Free Operating Systems 3686* Changes in Emacs 29.1 on Non-Free Operating Systems
diff --git a/lisp/subr.el b/lisp/subr.el
index f4b457556d6..686189e69b8 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -5204,6 +5204,8 @@ Modifies the match data; use `save-match-data' if necessary."
5204 5204
5205 (nreverse list))) 5205 (nreverse list)))
5206 5206
5207(defalias 'string-split #'split-string)
5208
5207(defun combine-and-quote-strings (strings &optional separator) 5209(defun combine-and-quote-strings (strings &optional separator)
5208 "Concatenate the STRINGS, adding the SEPARATOR (default \" \"). 5210 "Concatenate the STRINGS, adding the SEPARATOR (default \" \").
5209This tries to quote the strings to avoid ambiguity such that 5211This tries to quote the strings to avoid ambiguity such that