[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 65e4ebd: Support bool-vectors in cl-extra.el
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] master 65e4ebd: Support bool-vectors in cl-extra.el |
Date: |
Sat, 10 Aug 2019 04:15:40 -0400 (EDT) |
branch: master
commit 65e4ebdfb6e78abac68ba9b9422fa6cd77028c16
Author: Philippe Schnoebelen <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Support bool-vectors in cl-extra.el
* lisp/emacs-lisp/cl-extra.el (cl-coerce): Support bool-vector.
Copyright-paperwork-exempt: yes
---
lisp/emacs-lisp/cl-extra.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/emacs-lisp/cl-extra.el b/lisp/emacs-lisp/cl-extra.el
index 4dc2e9d..3a6def7 100644
--- a/lisp/emacs-lisp/cl-extra.el
+++ b/lisp/emacs-lisp/cl-extra.el
@@ -48,6 +48,8 @@ TYPE is a Common Lisp type specifier.
\n(fn OBJECT TYPE)"
(cond ((eq type 'list) (if (listp x) x (append x nil)))
((eq type 'vector) (if (vectorp x) x (vconcat x)))
+ ((eq type 'bool-vector)
+ (if (bool-vector-p x) x (apply #'bool-vector (cl-coerce x 'list))))
((eq type 'string) (if (stringp x) x (concat x)))
((eq type 'array) (if (arrayp x) x (vconcat x)))
((and (eq type 'character) (stringp x) (= (length x) 1)) (aref x 0))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 65e4ebd: Support bool-vectors in cl-extra.el,
Eli Zaretskii <=