From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Mastro Newsgroups: gmane.emacs.bugs Subject: bug#26540: 25.2; [PATCH] Add cl-set-equal to test for set equality Date: Tue, 18 Apr 2017 13:13:46 -0700 Message-ID: References: <87bmrve6n9.fsf@cassou.me> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1492546515 25524 195.159.176.226 (18 Apr 2017 20:15:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 18 Apr 2017 20:15:15 +0000 (UTC) Cc: Damien Cassou To: 26540@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 18 22:15:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0ZWj-0006O0-Vh for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Apr 2017 22:15:06 +0200 Original-Received: from localhost ([::1]:44519 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0ZWp-0005Hj-J6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Apr 2017 16:15:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0ZWk-0005GX-IA for bug-gnu-emacs@gnu.org; Tue, 18 Apr 2017 16:15:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0ZWh-0004jc-8T for bug-gnu-emacs@gnu.org; Tue, 18 Apr 2017 16:15:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57039) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d0ZWh-0004jX-4p for bug-gnu-emacs@gnu.org; Tue, 18 Apr 2017 16:15:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d0ZWf-0001Yh-Q5 for bug-gnu-emacs@gnu.org; Tue, 18 Apr 2017 16:15:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: John Mastro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Apr 2017 20:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26540 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 26540-submit@debbugs.gnu.org id=B26540.14925464555915 (code B ref 26540); Tue, 18 Apr 2017 20:15:01 +0000 Original-Received: (at 26540) by debbugs.gnu.org; 18 Apr 2017 20:14:15 +0000 Original-Received: from localhost ([127.0.0.1]:55237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0ZVv-0001XL-GO for submit@debbugs.gnu.org; Tue, 18 Apr 2017 16:14:15 -0400 Original-Received: from mail-qk0-f179.google.com ([209.85.220.179]:34008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0ZVu-0001X7-1O for 26540@debbugs.gnu.org; Tue, 18 Apr 2017 16:14:14 -0400 Original-Received: by mail-qk0-f179.google.com with SMTP id p68so3804832qke.1 for <26540@debbugs.gnu.org>; Tue, 18 Apr 2017 13:14:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=VBgyTXh5Yd7ZPTRyK9BHap1SNGy6c05BmttcPigqOtA=; b=eIDwXfGwr0D8t3DAdoESpDumlX5SXqZCQQvR7nuQPezP5r+Z9outE2+RQ9ytpcAJez lDMznLc2yGdWAYAgikSOND1bAzDsDa2PHFxSn1mqevUoj+3zMkRuLJ+bqKDTJA8f+sw2 bdSGfr9UjHS0y8OOSioiK7fb7yMoDMeIljYSPq9IvRmmnWN1Y0s0fOU5ccFO742gX/Hx BSK4hXD4e3L0vUzwqLqbrusmou+63pLCSfphwUBAvMLurJ68aEnTV+KJ31i79JfwZMTv FySd+5MY1JBY1B/bbavl2bwP0aqzNRl/AcWSFVNMEE/ReMH76YZdJ2W9o6qKZnP7wz5E bdOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=VBgyTXh5Yd7ZPTRyK9BHap1SNGy6c05BmttcPigqOtA=; b=HztxQg26LcAPoyZG7V6d4XhLO9pOY7P2A7LPTvEkc4UkhtmsicwfEKSopGDvsmKQyj tQ9z9xNsHrnkq0pZw1tCsnLVeuAflQ5CcWMrY90HsnHAo1vqs5lTgJc4dhfpC20Gmgzj /JZcAyRD5VQCBMzTJ2xk1wziaHg9OJ0RzD71cysVtsMUSs729TKHXS3BaNbhWmOis3Qu ySlZF2FwZQrKnPcUWZYgIf3ezZxZUCsq53i3yclRSY/Ja1ho25EWOcBr7y7m+Ms00wLz pxLCveRgyUSXGp0R4r770NuQjLXRvluOnoYX76pV/gNgqr3mcoW0y1Cm6rZdUAHBpnHk FabQ== X-Gm-Message-State: AN3rC/61WRrS97jzWESz4buUV7o4U9yOIOcXzMVGfW1J4up6G4nAmS0K KefbG7utcrcFJjEFMPKOZcynZTEgNUSHtSE= X-Received: by 10.55.48.68 with SMTP id w65mr16409381qkw.160.1492546447278; Tue, 18 Apr 2017 13:14:07 -0700 (PDT) Original-Received: by 10.237.32.9 with HTTP; Tue, 18 Apr 2017 13:13:46 -0700 (PDT) In-Reply-To: <87bmrve6n9.fsf@cassou.me> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:131741 Archived-At: Damien Cassou wrote: > > This patch adds cl-seq-equal to test whether two lists have the same > elements. I.e., if every element of LIST1 also appears in LIST2 and if every > element of LIST2 also appears in LIST1. This is admittedly bikeshedding, for which I apologize, but I'd like to mention the possibility of adding this to `seq' as an alternative to adding it to `cl-lib'. My two arguments for adding it to `seq' are: - This function doesn't exist in Common Lisp, so `cl-lib' seems like a somewhat arbitrary place for it, other than that its implementation uses `cl-set-exclusive-or'. - It could use seq.el's type dispatch As a downside, (besides the fact that the patch adding it to `cl-lib' is already available), `seq' doesn't have a direct equivalent to `cl-set-exclusive-or', so adding it to `seq' is more work. John