GNU bug report logs - #8841
23.1.90; Bug in cl-seq's `union' implementation

Previous Next

Package: emacs;

Reported by: Thunk Out <thunkout <at> gmail.com>

Date: Sun, 12 Jun 2011 03:32:02 UTC

Severity: normal

Found in versions 24.3, 24.5, 23.4, 23.1.90

Fixed in version 25.0.94

Done: Noam Postavsky <npostavs <at> users.sourceforge.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Daniel Colascione <dan.colascione <at> gmail.com>
To: 8841 <at> debbugs.gnu.org
Subject: bug#8841: 23.1.90; Bug in cl-seq's `union' implementation
Date: Sun, 12 Jun 2011 11:36:09 -0700
-----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-----





This bug report was last modified 8 years and 357 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.