Make seq-into return the sequence when no conversion needed
commitfb2fdb1435d2520c1cbf2a3d6a53128512a38458
authorNicolas Petton <nicolas@petton.fr>
Fri, 16 Dec 2016 10:18:04 +0000 (16 11:18 +0100)
committerNicolas Petton <nicolas@petton.fr>
Fri, 16 Dec 2016 10:22:00 +0000 (16 11:22 +0100)
tree3c62d01dcc3c4970eb9c8d0caf07a4666a8e3d21
parentcdf5340f51d4346c276102331e3ed29561753b26
Make seq-into return the sequence when no conversion needed

* lisp/emacs-lisp/seq.el (seq-into): Do not convert the sequence when
  no conversion is needed.
* test/lisp/emacs-lisp/seq-tests.el (test-seq-into-and-identity): Add
  a regression test checking for identity.
lisp/emacs-lisp/seq.el
test/lisp/emacs-lisp/seq-tests.el