From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: cl-extra.el : any support for bool-vector type? Date: Sat, 10 Aug 2019 11:16:01 +0300 Message-ID: <8336i9a11a.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="148803"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Philippe Schnoebelen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 10 10:16:12 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hwMXr-000cYp-CW for ged-emacs-devel@m.gmane.org; Sat, 10 Aug 2019 10:16:11 +0200 Original-Received: from localhost ([::1]:35342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hwMXq-0001c8-En for ged-emacs-devel@m.gmane.org; Sat, 10 Aug 2019 04:16:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56061) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hwMXm-0001Xe-Ce for emacs-devel@gnu.org; Sat, 10 Aug 2019 04:16:07 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hwMXm-0004M6-9i; Sat, 10 Aug 2019 04:16:06 -0400 Original-Received: from [176.228.60.248] (port=3620 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hwMXl-0002eE-Hq; Sat, 10 Aug 2019 04:16:06 -0400 In-reply-to: (message from Philippe Schnoebelen on Sun, 28 Jul 2019 08:59:12 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239293 Archived-At: > From: Philippe Schnoebelen > Date: Sun, 28 Jul 2019 08:59:12 +0200 > > Was surprised to see that > >     (cl-map 'vector #'not '(nil nil 2 3 nil 5 nil 7 nil nil nil 11)) > > is accepted by emacs while > >     (cl-map 'bool-vector #'not '(nil nil 2 3 nil 5 nil 7 nil nil nil 11)) > > fails with (error "Unknown type bool-vector"). > > Turns out that cl-extra.el does not support bool-vectors. Is there any > reason for this? Not knowing of any, I've just added one line to > cl-coerce and now I can coerce to bool-vectors. See attachment. Let me > know if I'm being reckless ...  -phs Thanks, I pushed this to the master branch.