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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33655 in the body.
You can then email your comments to 33655 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#33655; Package emacs. (Fri, 07 Dec 2018 03:54:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Xu Chunyang <mail <at> xuchunyang.me>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 07 Dec 2018 03:54:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Xu Chunyang <mail <at> xuchunyang.me>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 26.1; A small error in cl-member's documentation
Date: Fri, 07 Dec 2018 11:52:35 +0800
(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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#33655; Package emacs. (Tue, 09 Jul 2019 23:41:01 GMT) Full text and rfc822 format available.

Message #8 received at 33655 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Xu Chunyang <mail <at> xuchunyang.me>
Cc: 33655 <at> debbugs.gnu.org
Subject: Re: 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




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 09 Jul 2019 23:41:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 33655 <at> debbugs.gnu.org and Xu Chunyang <mail <at> xuchunyang.me> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 09 Jul 2019 23:41:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 07 Aug 2019 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 257 days ago.

Previous Next


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