From e6dc0cf2d399c907f345e11eeaa4e5d08fc4d7b6 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Fri, 9 Sep 2022 23:51:05 +0200 Subject: [PATCH] * 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 97a476ae08e..35b74aa7de6 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 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." (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 -- 2.39.2