bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#33655: 26.1; A small error in cl-member's documentation


From: Lars Ingebrigtsen
Subject: bug#33655: 26.1; A small error in cl-member's documentation
Date: Wed, 10 Jul 2019 01:40:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Xu Chunyang <mail@xuchunyang.me> writes:

> (info "(cl) Lists as Sets") says
>
>> With no keyword arguments, ‘cl-member’ is equivalent to ‘memq’.
>
> It is not true, since cl-member uses eql by default, while memq uses eq.
>
>   (cl-member 1.0 '(1.0))
>   ;; => (1.0)
>   
>   (memq 1.0 '(1.0))
>   ;; => nil

Yup; the documentation is wrong here.  I've now removed that sentence
about memq from the manual on the Emacs trunk.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]