From: Fabián Ezequiel Gallina Date: Mon, 30 Jun 2014 04:54:46 +0000 (-0300) Subject: * lisp/emacs-lisp/subr-x.el (string-reverse): Use `reverse'. X-Git-Tag: emacs-25.0.90~2636^2~74^2~7 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=de12301ea1959d81f3ad4c5b624ee998ffb55e2b;p=emacs.git * lisp/emacs-lisp/subr-x.el (string-reverse): Use `reverse'. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 56e53ee673c..cbf8329d583 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2014-06-30 Fabián Ezequiel Gallina + + * emacs-lisp/subr-x.el (string-reverse): Use `reverse'. + 2014-06-30 Fabián Ezequiel Gallina New if-let, when-let, thread-first and thread-last macros. diff --git a/lisp/emacs-lisp/subr-x.el b/lisp/emacs-lisp/subr-x.el index 60cd7b8995b..932c9e7f6ef 100644 --- a/lisp/emacs-lisp/subr-x.el +++ b/lisp/emacs-lisp/subr-x.el @@ -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."