[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master e6dc0cf2d3 3/3: * lisp/subr.el (string-split): New alias for spli
From: |
Stefan Kangas |
Subject: |
master e6dc0cf2d3 3/3: * lisp/subr.el (string-split): New alias for split-string. |
Date: |
Fri, 9 Sep 2022 19:13:09 -0400 (EDT) |
branch: master
commit e6dc0cf2d399c907f345e11eeaa4e5d08fc4d7b6
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>
* lisp/subr.el (string-split): New alias for split-string.
---
etc/NEWS | 2 ++
lisp/subr.el | 2 ++
2 files changed, 4 insertions(+)
diff --git a/etc/NEWS b/etc/NEWS
index 97a476ae08..35b74aa7de 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -3679,6 +3679,8 @@ to preserve the old behavior, apply
'(take N LIST)' returns the first N elements of LIST; 'ntake' does
the same but works by modifying LIST destructively.
+---
+** 'string-split' is now an alias for 'split-string'.
* Changes in Emacs 29.1 on Non-Free Operating Systems
diff --git a/lisp/subr.el b/lisp/subr.el
index f4b457556d..686189e69b 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -5204,6 +5204,8 @@ Modifies the match data; use `save-match-data' if
necessary."
(nreverse list)))
+(defalias 'string-split #'split-string)
+
(defun combine-and-quote-strings (strings &optional separator)
"Concatenate the STRINGS, adding the SEPARATOR (default \" \").
This tries to quote the strings to avoid ambiguity such that