diff options
| author | Fabián Ezequiel Gallina | 2014-06-30 01:54:46 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2014-06-30 01:54:46 -0300 |
| commit | de12301ea1959d81f3ad4c5b624ee998ffb55e2b (patch) | |
| tree | 2bd0c9bcd7c00b489c833920211a76a2aaf12dab | |
| parent | c08f8be29f4f6d107da5cc38d614519df7a6ab11 (diff) | |
| download | emacs-de12301ea1959d81f3ad4c5b624ee998ffb55e2b.tar.gz emacs-de12301ea1959d81f3ad4c5b624ee998ffb55e2b.zip | |
* 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 @@ | |||
| 1 | 2014-06-30 Fabián Ezequiel Gallina <fgallina@gnu.org> | 1 | 2014-06-30 Fabián Ezequiel Gallina <fgallina@gnu.org> |
| 2 | 2 | ||
| 3 | * emacs-lisp/subr-x.el (string-reverse): Use `reverse'. | ||
| 4 | |||
| 5 | 2014-06-30 Fabián Ezequiel Gallina <fgallina@gnu.org> | ||
| 6 | |||
| 3 | New if-let, when-let, thread-first and thread-last macros. | 7 | New if-let, when-let, thread-first and thread-last macros. |
| 4 | 8 | ||
| 5 | * emacs-lisp/subr-x.el | 9 | * 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." | |||
| 161 | 161 | ||
| 162 | (defsubst string-reverse (str) | 162 | (defsubst string-reverse (str) |
| 163 | "Reverse the string STR." | 163 | "Reverse the string STR." |
| 164 | (apply 'string (nreverse (string-to-list str)))) | 164 | (reverse str)) |
| 165 | 165 | ||
| 166 | (defsubst string-trim-left (string) | 166 | (defsubst string-trim-left (string) |
| 167 | "Remove leading whitespace from STRING." | 167 | "Remove leading whitespace from STRING." |