diff options
| -rw-r--r-- | lisp/emacs-lisp/cl-extra.el | 8 |
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." | |||
| 528 | (seq-subseq seq start end)) | 528 | (seq-subseq seq start end)) |
| 529 | 529 | ||
| 530 | ;;;###autoload | 530 | ;;;###autoload |
| 531 | (defun cl-concatenate (type &rest seqs) | 531 | (defalias 'cl-concatenate #'seq-concatenate |
| 532 | "Concatenate, into a sequence of type TYPE, the argument SEQUENCEs. | 532 | "Concatenate, into a sequence of type TYPE, the argument SEQUENCEs. |
| 533 | \n(fn TYPE SEQUENCE...)" | 533 | \n(fn TYPE SEQUENCE...)") |
| 534 | (cond ((eq type 'vector) (apply 'vconcat seqs)) | ||
| 535 | ((eq type 'string) (apply 'concat seqs)) | ||
| 536 | ((eq type 'list) (apply 'append (append seqs '(nil)))) | ||
| 537 | (t (error "Not a sequence type name: %s" type)))) | ||
| 538 | 534 | ||
| 539 | 535 | ||
| 540 | ;;; List functions. | 536 | ;;; List functions. |