all messages for Emacs-related lists mirrored at yhetil.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.