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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8841 in the body.
You can then email your comments to 8841 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8841; Package emacs. (Sun, 12 Jun 2011 03:32:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Thunk Out <thunkout <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 12 Jun 2011 03:32:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Thunk Out <thunkout <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 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)]

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8841; Package emacs. (Sun, 12 Jun 2011 18:37:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Daniel Colascione <dan.colascione <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: 8841 <at> debbugs.gnu.org
Subject: Re: 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-----





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8841; Package emacs. (Sun, 12 Jun 2011 18:37:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#8841; Package emacs. (Thu, 02 Jun 2016 02:01:02 GMT) Full text and rfc822 format available.

Message #14 received at 8841 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: 8841 <at> debbugs.gnu.org
Subject: bug#8841: 23.1.90; Bug in cl-seq's `union' implementation
Date: Wed, 1 Jun 2016 22:00:46 -0400
found 8841 23.4
found 8841 24.3
found 8841 24.5
fixed 8841 25.0.94
close 8841
quit


Seems to have been fixed in Emacs 25




bug Marked as found in versions 23.4. Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Thu, 02 Jun 2016 02:01:02 GMT) Full text and rfc822 format available.

bug Marked as found in versions 24.3. Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Thu, 02 Jun 2016 02:01:02 GMT) Full text and rfc822 format available.

bug Marked as found in versions 24.5. Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Thu, 02 Jun 2016 02:01:02 GMT) Full text and rfc822 format available.

bug Marked as fixed in versions 25.0.94. Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Thu, 02 Jun 2016 02:01:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 8841 <at> debbugs.gnu.org and Thunk Out <thunkout <at> gmail.com> Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Thu, 02 Jun 2016 02:01:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 30 Jun 2016 11:24:04 GMT) Full text and rfc822 format available.

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.