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


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




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.