]> git.eshelyaron.com Git - emacs.git/commit
Tweak subr-x.el substring functions
authorBasil L. Contovounesios <contovob@tcd.ie>
Fri, 1 Jun 2018 20:58:10 +0000 (21:58 +0100)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 13 Jul 2018 15:28:16 +0000 (11:28 -0400)
commit1013e0392b78ee0e2199fb51859dc9e939315f9b
tree354554047a2a30022a89f23308b542fe6743f54d
parent34eba3e33334166a3b195f00650dee4674c80a9d
Tweak subr-x.el substring functions

* lisp/emacs-lisp/subr-x.el (string-join): #'-quote function symbol.
(string-trim-left, string-trim-right):
Make better use of substring for minor speedup.
* test/lisp/emacs-lisp/subr-x-tests.el
(subr-x-test-string-trim-left, subr-x-test-string-trim-right)
(subr-x-test-string-remove-prefix)
(subr-x-test-string-remove-suffix): New tests.
lisp/emacs-lisp/subr-x.el
test/lisp/emacs-lisp/subr-x-tests.el