Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
447bdcb8
Commit
447bdcb8
authored
Nov 26, 2013
by
Bozhidar Batsov
Browse files
* lisp/emacs-lisp/helpers.el (string-reverse): New function.
parent
5fbf6856
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
etc/NEWS
etc/NEWS
+1
-0
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/emacs-lisp/helpers.el
lisp/emacs-lisp/helpers.el
+4
-0
No files found.
etc/NEWS
View file @
447bdcb8
...
@@ -788,6 +788,7 @@ frame.
...
@@ -788,6 +788,7 @@ frame.
***
`hash-table-keys'
***
`hash-table-keys'
***
`hash-table-values'
***
`hash-table-values'
***
`string-join`
***
`string-join`
***
`string-reverse`
***
`string-trim-left'
***
`string-trim-left'
***
`string-trim-right'
***
`string-trim-right'
***
`string-trim'
***
`string-trim'
...
...
lisp/ChangeLog
View file @
447bdcb8
2013-11-26 Bozhidar Batsov <bozhidar@batsov.com>
* emacs-lisp/helpers.el (string-reverse): New function.
2013-11-26 Michael Albinus <michael.albinus@gmx.de>
2013-11-26 Michael Albinus <michael.albinus@gmx.de>
* net/tramp.el (tramp-file-name-regexp-unified): Support IPv6 host
* net/tramp.el (tramp-file-name-regexp-unified): Support IPv6 host
...
...
lisp/emacs-lisp/helpers.el
View file @
447bdcb8
...
@@ -41,6 +41,10 @@
...
@@ -41,6 +41,10 @@
"Join all STRINGS using SEPARATOR."
"Join all STRINGS using SEPARATOR."
(
mapconcat
'identity
strings
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
)
(
defsubst
string-trim-left
(
string
)
"Remove leading whitespace from STRING."
"Remove leading whitespace from STRING."
(
if
(
string-match
"\\`[ \t\n\r]+"
string
)
(
if
(
string-match
"\\`[ \t\n\r]+"
string
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment