summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/cl-extra.el
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2020-03-09 07:49:33 +0000
committerAndrea Corallo <akrl@sdf.org>2020-03-09 07:49:33 +0000
commit87ee6ff4eb6df369965f37fba073e3ef1bb5d0bd (patch)
tree2af79516bca28e875879e01cb45b16fa4525a905 /lisp/emacs-lisp/cl-extra.el
parent9838ee7ed870844470703b2648f8b59c0575bd46 (diff)
parenta461baae79af3cea8780e9d9a845a1e859e96e5e (diff)
downloademacs-87ee6ff4eb6df369965f37fba073e3ef1bb5d0bd.tar.gz
emacs-87ee6ff4eb6df369965f37fba073e3ef1bb5d0bd.tar.bz2
emacs-87ee6ff4eb6df369965f37fba073e3ef1bb5d0bd.zip
Merge remote-tracking branch 'savannah/master' into HEAD
Diffstat (limited to 'lisp/emacs-lisp/cl-extra.el')
-rw-r--r--lisp/emacs-lisp/cl-extra.el6
1 files changed, 1 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/cl-extra.el b/lisp/emacs-lisp/cl-extra.el
index e3dabdfcef2..e9bfe8df5f2 100644
--- a/lisp/emacs-lisp/cl-extra.el
+++ b/lisp/emacs-lisp/cl-extra.el
@@ -556,11 +556,7 @@ too large if positive or too small if negative)."
(defun cl-concatenate (type &rest sequences)
"Concatenate, into a sequence of type TYPE, the argument SEQUENCEs.
\n(fn TYPE SEQUENCE...)"
- (pcase type
- ('vector (apply #'vconcat sequences))
- ('string (apply #'concat sequences))
- ('list (apply #'append (append sequences '(nil))))
- (_ (error "Not a sequence type name: %S" type))))
+ (seq-concatenate type sequences))
;;; List functions.