diff options
| author | Stefan Kangas | 2022-09-09 23:51:05 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2022-09-10 01:12:29 +0200 |
| commit | e6dc0cf2d399c907f345e11eeaa4e5d08fc4d7b6 (patch) | |
| tree | 44fcbffcf55c72bf06a13041dc4682d8ff4602db | |
| parent | 3ddf1a920d267794fff8d311aead43525167bab4 (diff) | |
| download | emacs-e6dc0cf2d399c907f345e11eeaa4e5d08fc4d7b6.tar.gz emacs-e6dc0cf2d399c907f345e11eeaa4e5d08fc4d7b6.zip | |
* lisp/subr.el (string-split): New alias for split-string.
| -rw-r--r-- | etc/NEWS | 2 | ||||
| -rw-r--r-- | lisp/subr.el | 2 |
2 files changed, 4 insertions, 0 deletions
| @@ -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 |
| 3680 | the same but works by modifying LIST destructively. | 3680 | the 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 \" \"). |
| 5209 | This tries to quote the strings to avoid ambiguity such that | 5211 | This tries to quote the strings to avoid ambiguity such that |