[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r115244: * lisp/emacs-lisp/helpers.el (string-revers
From: |
Bozhidar Batsov |
Subject: |
[Emacs-diffs] trunk r115244: * lisp/emacs-lisp/helpers.el (string-reverse): New function. |
Date: |
Tue, 26 Nov 2013 15:25:14 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 115244
revision-id: address@hidden
parent: address@hidden
committer: Bozhidar Batsov <address@hidden>
branch nick: master
timestamp: Tue 2013-11-26 17:24:10 +0200
message:
* lisp/emacs-lisp/helpers.el (string-reverse): 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-26 10:21:03 +0000
+++ b/etc/NEWS 2013-11-26 15:24:10 +0000
@@ -788,6 +788,7 @@
*** `hash-table-keys'
*** `hash-table-values'
*** `string-join`
+*** `string-reverse`
*** `string-trim-left'
*** `string-trim-right'
*** `string-trim'
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2013-11-26 15:07:10 +0000
+++ b/lisp/ChangeLog 2013-11-26 15:24:10 +0000
@@ -1,3 +1,7 @@
+2013-11-26 Bozhidar Batsov <address@hidden>
+
+ * emacs-lisp/helpers.el (string-reverse): New function.
+
2013-11-26 Michael Albinus <address@hidden>
* net/tramp.el (tramp-file-name-regexp-unified): Support IPv6 host
=== modified file 'lisp/emacs-lisp/helpers.el'
--- a/lisp/emacs-lisp/helpers.el 2013-11-25 19:04:50 +0000
+++ b/lisp/emacs-lisp/helpers.el 2013-11-26 15:24:10 +0000
@@ -41,6 +41,10 @@
"Join all STRINGS using SEPARATOR."
(mapconcat 'identity strings separator))
+(defsubst string-reverse (str)
+ "Reverse the string STR."
+ (apply 'string (nreverse (string-to-list str))))
+
(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 r115244: * lisp/emacs-lisp/helpers.el (string-reverse): New function.,
Bozhidar Batsov <=