]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/helpers.el (string-join): New function.
authorBozhidar Batsov <bozhidar@batsov.com>
Mon, 25 Nov 2013 19:04:50 +0000 (21:04 +0200)
committerBozhidar Batsov <bozhidar@batsov.com>
Mon, 25 Nov 2013 19:04:50 +0000 (21:04 +0200)
etc/NEWS
lisp/ChangeLog
lisp/emacs-lisp/helpers.el

index e46d0fdc61a354d8e4c0a02dc780940a480166cc..9b0d2eb14c6a5b3901e92f05ee1104d430ff1260 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -775,6 +775,7 @@ frame.
 ** New library helpers.el for misc helper functions
 *** `hash-table-keys'
 *** `hash-table-values'
+*** `string-join`
 *** `string-trim-left'
 *** `string-trim-right'
 *** `string-trim'
index 06b614ea2fa1921834fe9d2559711d766519452d..6f5519e8803ed6f17590172fed2c7737b094be35 100644 (file)
@@ -1,7 +1,9 @@
-2013-11-25  Bozhidar Batsov  <bozhidar@bozhidar.com>
+2013-11-25  Bozhidar Batsov  <bozhidar@batsov.com>
 
        * emacs-lisp/bytecomp.el (byte-compile-form): Fix a typo.
 
+       * emacs-lisp/helpers.el (string-join): New function.
+
 2013-11-25  Sebastian Wiesner <lunaryorn@gmail.com>
 
        * emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions):
index fd5985467b5bafd98cea57feda1f5d9b23ca0cef..a8e6c494c4d9d2f9bb457b6f087a2234fd6bad70 100644 (file)
     (maphash (lambda (_k v) (push v values)) hash-table)
     values))
 
+(defsubst string-join (strings &optional separator)
+  "Join all STRINGS using SEPARATOR."
+  (mapconcat 'identity strings separator))
+
 (defsubst string-trim-left (string)
   "Remove leading whitespace from STRING."
   (if (string-match "\\`[ \t\n\r]+" string)