all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#33655: 26.1; A small error in cl-member's documentation
@ 2018-12-07  3:52 Xu Chunyang
  2019-07-09 23:40 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Xu Chunyang @ 2018-12-07  3:52 UTC (permalink / raw)
  To: 33655


(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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#33655: 26.1; A small error in cl-member's documentation
  2018-12-07  3:52 bug#33655: 26.1; A small error in cl-member's documentation Xu Chunyang
@ 2019-07-09 23:40 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-09 23:40 UTC (permalink / raw)
  To: Xu Chunyang; +Cc: 33655

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-09 23:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-07  3:52 bug#33655: 26.1; A small error in cl-member's documentation Xu Chunyang
2019-07-09 23:40 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.