unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#8841: 23.1.90; Bug in cl-seq's `union' implementation
@ 2011-06-12  3:30 Thunk Out
  2011-06-12 18:36 ` Daniel Colascione
  2016-06-02  2:00 ` Noam Postavsky
  0 siblings, 2 replies; 3+ messages in thread
From: Thunk Out @ 2011-06-12  3:30 UTC (permalink / raw)
  To: 8841

[-- Attachment #1: Type: text/plain, Size: 340 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 662 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-02  2:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-12  3:30 bug#8841: 23.1.90; Bug in cl-seq's `union' implementation Thunk Out
2011-06-12 18:36 ` Daniel Colascione
2016-06-02  2:00 ` Noam Postavsky

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).