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: Thunk Out <thunkout <at> gmail.com>
To: 8841 <at> debbugs.gnu.org
Subject: bug#8841: 23.1.90; Bug in cl-seq's `union' implementation
Date: Sat, 11 Jun 2011 22:30:59 -0500
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]

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.