From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dave Abrahams Newsgroups: gmane.emacs.bugs Subject: bug#8012: 23.2; set-difference broken Date: Thu, 10 Feb 2011 06:30:40 -0500 Organization: BoostPro Computing Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1297338335 20489 80.91.229.12 (10 Feb 2011 11:45:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Feb 2011 11:45:35 +0000 (UTC) Cc: 8012@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 10 12:45:30 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PnUxc-0002vY-J2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Feb 2011 12:45:20 +0100 Original-Received: from localhost ([127.0.0.1]:59537 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnUp2-0001DA-8b for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Feb 2011 06:36:28 -0500 Original-Received: from [140.186.70.92] (port=57464 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnUov-0001Bg-46 for bug-gnu-emacs@gnu.org; Thu, 10 Feb 2011 06:36:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PnUol-0000Lw-UJ for bug-gnu-emacs@gnu.org; Thu, 10 Feb 2011 06:36:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PnUol-0000Ll-JX for bug-gnu-emacs@gnu.org; Thu, 10 Feb 2011 06:36:11 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PnUb4-0002Yj-Cq; Thu, 10 Feb 2011 06:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dave Abrahams Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Feb 2011 11:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8012 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8012-submit@debbugs.gnu.org id=B8012.12973369219831 (code B ref 8012); Thu, 10 Feb 2011 11:22:02 +0000 Original-Received: (at 8012) by debbugs.gnu.org; 10 Feb 2011 11:22:01 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PnUb2-0002YT-U8 for submit@debbugs.gnu.org; Thu, 10 Feb 2011 06:22:01 -0500 Original-Received: from mail-qy0-f179.google.com ([209.85.216.179]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PnUb1-0002YI-7G for 8012@debbugs.gnu.org; Thu, 10 Feb 2011 06:21:59 -0500 Original-Received: by qyj19 with SMTP id 19so922464qyj.3 for <8012@debbugs.gnu.org>; Thu, 10 Feb 2011 03:30:45 -0800 (PST) Original-Received: by 10.229.88.67 with SMTP id z3mr4188268qcl.138.1297337445421; Thu, 10 Feb 2011 03:30:45 -0800 (PST) Original-Received: from zreba.luannocracy.com (207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com [207.172.223.249]) by mx.google.com with ESMTPS id g28sm930660qck.25.2011.02.10.03.30.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 10 Feb 2011 03:30:44 -0800 (PST) Original-Received: from zreba.luannocracy.com (localhost [127.0.0.1]) by zreba.luannocracy.com (Postfix) with ESMTP id 1951F4016D6F; Thu, 10 Feb 2011 06:30:41 -0500 (EST) In-Reply-To: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL/10.8 Emacs/23.2 (x86_64-apple-darwin) MULE/6.0 (HANACHIRUSATO) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 10 Feb 2011 06:22:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44022 Archived-At: At Wed, 09 Feb 2011 23:58:15 -0500, Glenn Morris wrote: > > Dave Abrahams wrote: > > > (set-difference '(a b (c)) '(a b (c))) > > > > Result: > > > > '((c)) > > > > Expected result: > > > > nil > > Maybe you want to use > > (set-difference '(a b (c)) '(a b (c)) :test 'equal) ? > > since > > (eq '(c) '(c)) ; -> nil > (equal '(c) '(c)) ; -> t Okay, thanks! But, where is it documented that set-difference is going to use eq? Oh, I see it in the info. Rather a shame that the docstrings for the cl set functions don't mention this; it would have saved me embarrassing myself and both of us from spending time on this. Cheers, -- Dave Abrahams BoostPro Computing http://www.boostpro.com