Make seq.el more extensible by using cl-defmethod
commite7be9861962a5a399047e86a254c2534d5d4d146
authorNicolas Petton <nicolas@petton.fr>
Fri, 14 Aug 2015 20:33:10 +0000 (14 22:33 +0200)
committerNicolas Petton <nicolas@petton.fr>
Sun, 23 Aug 2015 17:50:26 +0000 (23 19:50 +0200)
treed34e43a6223522794a55aecedccffdc1769896f1
parent58c3762a8b8cfcf714539bda7114f52b6f615258
Make seq.el more extensible by using cl-defmethod

* lisp/emacs-lisp/seq.el: Define seq.el functions using cl-defmethod to
make it easier to extend seq.el with new "seq types".
* test/automated/seq-tests.el (test-setf-seq-elt): New test.
* lisp/emacs-lisp/cl-extra.el (cl-subseq): Move back the definition of
subseq in cl-extra.el, and use it in seq.el.
lisp/emacs-lisp/cl-extra.el
lisp/emacs-lisp/seq.el
test/automated/seq-tests.el