diff options
| author | Fabián Ezequiel Gallina <fgallina@gnu.org> | 2014-06-30 01:54:46 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina <fgallina@gnu.org> | 2014-06-30 01:54:46 -0300 |
| commit | de12301ea1959d81f3ad4c5b624ee998ffb55e2b (patch) | |
| tree | 2bd0c9bcd7c00b489c833920211a76a2aaf12dab | |
| parent | c08f8be29f4f6d107da5cc38d614519df7a6ab11 (diff) | |
| download | emacs-de12301ea1959d81f3ad4c5b624ee998ffb55e2b.tar.gz | |
* lisp/emacs-lisp/subr-x.el (string-reverse): Use `reverse'.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/subr-x.el | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 56e53ee673c..cbf8329d583 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,9 @@ 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. * emacs-lisp/subr-x.el 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." |
