GNU bug report logs - #33655
26.1; A small error in cl-member's documentation

Previous Next

Package: emacs;

Reported by: Xu Chunyang <mail <at> xuchunyang.me>

Date: Fri, 7 Dec 2018 03:54:01 UTC

Severity: minor

Tags: fixed

Found in version 26.1

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Xu Chunyang <mail <at> xuchunyang.me>
Cc: 33655 <at> debbugs.gnu.org
Subject: bug#33655: 26.1; A small error in cl-member's documentation
Date: Wed, 10 Jul 2019 01:40:11 +0200
Xu Chunyang <mail <at> 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




This bug report was last modified 5 years and 355 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.