bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#8841: 23.1.90; Bug in cl-seq's `union' implementation


From: Daniel Colascione
Subject: bug#8841: 23.1.90; Bug in cl-seq's `union' implementation
Date: Sun, 12 Jun 2011 11:36:09 -0700
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 6/11/11 8:30 PM, Thunk Out wrote:
> There's a bug in cl-seq's `union' implementation.
> 
> The second clause in its `cond' tests CL-LIST1 and CL-LIST2 for
> `equal'ity, not taking :test into account:
> 
>     ((equal cl-list1 cl-list2) cl-list1)
> 
> So, for example:
> 
>     (union '("foo") '("foo") :test '=)  =>  ("foo")
> 
> But:
> 
>     (union '("foo") '("bar") :test '=)  =>  **error**
> 
> 
> 
> -tlh
> 

Note that this problem also affects other functions in cl-seq. I'm also
not entire sure why there's a special case in union for numbers.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)

iEYEARECAAYFAk31BxUACgkQ17c2LVA10VvTTQCfdwOjUgweUMTKAiAsbvP6+TWv
yZwAn2KQPgLcke2ibtDZ8ZeEkGFQHiOp
=WUWg
-----END PGP SIGNATURE-----






reply via email to

[Prev in Thread] Current Thread [Next in Thread]