Subject: Re: bug#40972: 27.0.91; assoc TESTFN's args reversed?

From: Michael Heerdegen <[email-masked]>
Date: Thu, 30 Apr 2020 01:30:13 +0200

Shigeru Fukaya <[email-masked]> writes:

> It seems to me, for third argument of `assoc', arguments are passed in a
> reverse order.
>
> (assoc "assoc" '(("cl-assoc" A) ("cl-member" B))
>        (lambda (x y) (equal (concat "cl-" x) y)))
> ==> nil
>
> (assoc "assoc" '(("cl-assoc" A) ("cl-member" B))
>        (lambda (y x) (equal (concat "cl-" x) y)))
> ==> ("cl-assoc" A)
>
> Or, is this intended behavior??

Dunno what others expect, but note that your predicate is not an
equality predicate (it's not symmetric), and the docstring doesn't
specify a behavior for this case.

Michael.