[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r115235: * lisp/emacs-lisp/helpers.el (string-join):
From: |
Bozhidar Batsov |
Subject: |
[Emacs-diffs] trunk r115235: * lisp/emacs-lisp/helpers.el (string-join): New function. |
Date: |
Mon, 25 Nov 2013 19:05:09 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 115235
revision-id: address@hidden
parent: address@hidden
committer: Bozhidar Batsov <address@hidden>
branch nick: emacs-bzr
timestamp: Mon 2013-11-25 21:04:50 +0200
message:
* lisp/emacs-lisp/helpers.el (string-join): New function.
modified:
etc/NEWS news-20100311060928-aoit31wvzf25yr1z-1
lisp/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1432
lisp/emacs-lisp/helpers.el helpers.el-20131104130751-8dd4wji5crsqfatf-1
=== modified file 'etc/NEWS'
--- a/etc/NEWS 2013-11-25 17:16:32 +0000
+++ b/etc/NEWS 2013-11-25 19:04:50 +0000
@@ -775,6 +775,7 @@
** New library helpers.el for misc helper functions
*** `hash-table-keys'
*** `hash-table-values'
+*** `string-join`
*** `string-trim-left'
*** `string-trim-right'
*** `string-trim'
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2013-11-25 18:48:33 +0000
+++ b/lisp/ChangeLog 2013-11-25 19:04:50 +0000
@@ -1,7 +1,9 @@
-2013-11-25 Bozhidar Batsov <address@hidden>
+2013-11-25 Bozhidar Batsov <address@hidden>
* emacs-lisp/bytecomp.el (byte-compile-form): Fix a typo.
+ * emacs-lisp/helpers.el (string-join): New function.
+
2013-11-25 Sebastian Wiesner <address@hidden>
* emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions):
=== modified file 'lisp/emacs-lisp/helpers.el'
--- a/lisp/emacs-lisp/helpers.el 2013-11-24 09:31:51 +0000
+++ b/lisp/emacs-lisp/helpers.el 2013-11-25 19:04:50 +0000
@@ -37,6 +37,10 @@
(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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r115235: * lisp/emacs-lisp/helpers.el (string-join): New function.,
Bozhidar Batsov <=