]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/subr-x.el (string-reverse): Use `reverse'.
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Mon, 30 Jun 2014 04:54:46 +0000 (01:54 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Mon, 30 Jun 2014 04:54:46 +0000 (01:54 -0300)
lisp/ChangeLog
lisp/emacs-lisp/subr-x.el

index 56e53ee673c749fc07cb9b79620746067aaa0c42..cbf8329d5837fcec7b09992772c4908b10d80583 100644 (file)
@@ -1,3 +1,7 @@
+2014-06-30  Fabián Ezequiel Gallina  <fgallina@gnu.org>
+
+       * emacs-lisp/subr-x.el (string-reverse): Use `reverse'.
+
 2014-06-30  Fabián Ezequiel Gallina  <fgallina@gnu.org>
 
        New if-let, when-let, thread-first and thread-last macros.
index 60cd7b8995b40ac5436b4f7218eccf7b12676889..932c9e7f6ef583f6c49e4a65a24aa21d5073510d 100644 (file)
@@ -161,7 +161,7 @@ to bind a single value, BINDINGS can just be a plain tuple."
 
 (defsubst string-reverse (str)
   "Reverse the string STR."
-  (apply 'string (nreverse (string-to-list str))))
+  (reverse str))
 
 (defsubst string-trim-left (string)
   "Remove leading whitespace from STRING."