summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorNicolas Petton <nicolas@petton.fr>2015-04-15 18:26:52 +0200
committerNicolas Petton <nicolas@petton.fr>2015-04-15 18:29:15 +0200
commita5dbb543cb3d3d0ef6774c410462ee33776810b2 (patch)
tree267edffd15d96ad9c31bea2d706c23fe32b4e4af /lisp/emacs-lisp
parent66ae3cff960606f96818e085226e05457d98a3cf (diff)
downloademacs-a5dbb543cb3d3d0ef6774c410462ee33776810b2.tar.gz
emacs-a5dbb543cb3d3d0ef6774c410462ee33776810b2.tar.bz2
emacs-a5dbb543cb3d3d0ef6774c410462ee33776810b2.zip
Define cl-concatenate as an alias to seq-concatenate
* lisp/emacs-lisp/cl-extra.el (cl-concatenate): Removes duplicated code by making cl-concatenate an alias to seq-concatenate.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/cl-extra.el8
1 files changed, 2 insertions, 6 deletions
diff --git a/lisp/emacs-lisp/cl-extra.el b/lisp/emacs-lisp/cl-extra.el
index afc2adbee6d..0a6bc3afda7 100644
--- a/lisp/emacs-lisp/cl-extra.el
+++ b/lisp/emacs-lisp/cl-extra.el
@@ -528,13 +528,9 @@ If START or END is negative, it counts from the end."
(seq-subseq seq start end))
;;;###autoload
-(defun cl-concatenate (type &rest seqs)
+(defalias 'cl-concatenate #'seq-concatenate
"Concatenate, into a sequence of type TYPE, the argument SEQUENCEs.
-\n(fn TYPE SEQUENCE...)"
- (cond ((eq type 'vector) (apply 'vconcat seqs))
- ((eq type 'string) (apply 'concat seqs))
- ((eq type 'list) (apply 'append (append seqs '(nil))))
- (t (error "Not a sequence type name: %s" type))))
+\n(fn TYPE SEQUENCE...)")
;;; List functions.