From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: Package.el and specifying alternative dependencies Date: Wed, 12 Apr 2017 09:44:32 +0200 Message-ID: <87h91ukr33.fsf@zigzag> References: Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1491986406 21546 195.159.176.226 (12 Apr 2017 08:40:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 12 Apr 2017 08:40:06 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 12 10:39:58 2017 Return-path: Envelope-to: ged-emacs-devel@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 1cyDoj-0005Qx-4y for ged-emacs-devel@m.gmane.org; Wed, 12 Apr 2017 10:39:57 +0200 Original-Received: from localhost ([::1]:42942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyDop-0008W6-55 for ged-emacs-devel@m.gmane.org; Wed, 12 Apr 2017 04:40:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyDoi-0008Vu-Sa for emacs-devel@gnu.org; Wed, 12 Apr 2017 04:39:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cyDod-00009x-Tk for emacs-devel@gnu.org; Wed, 12 Apr 2017 04:39:56 -0400 Original-Received: from mail.agora-net.com ([67.59.132.6]:41088) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cyDod-00009h-PG for emacs-devel@gnu.org; Wed, 12 Apr 2017 04:39:51 -0400 Original-Received: from ttn by mail.agora-net.com with local (Exim 4.82) (envelope-from ) id 1cyDoa-0007JP-Kk for emacs-devel@gnu.org; Wed, 12 Apr 2017 04:39:48 -0400 Original-Received: from ttn by zigzag.favinet with local (Exim 4.80) (envelope-from ) id 1cyCxI-0002mD-S3 for emacs-devel@gnu.org; Wed, 12 Apr 2017 09:44:44 +0200 Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: (Kaushal Modi's message of "Tue, 11 Apr 2017 22:37:29 +0000") X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: ttn@gnuvola.org X-SA-Exim-Scanned: No (on mail.agora-net.com); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 67.59.132.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:213896 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable () Kaushal Modi () Tue, 11 Apr 2017 22:37:29 +0000 ;; It's *very* critical that the order of packages stays ;; the same in NEW-RET as in ORIG-RET. The `push' command ;; flips the order, so use `reverse' to flip the order ;; back to the original. If you don't mind =E2=80=98cl=E2=80=99, you can also use =E2=80=98cl-remove= -if=E2=80=99 instead. Squinting a little, i see the removal predicate is essentially set membership, which seems to indicate =E2=80=98cl-set-difference=E2=80=99. Unfortunately, a quick scan of (info "(cl) Lists as Sets") reveals no guarantees on order, and Common Lisp (per CLHS) actively disclaims such guarantees. So it goes... =2D-=20 Thien-Thi Nguyen ----------------------------------------------- (defun responsep (query) (pcase (context query) (`(technical ,ml) (correctp ml)) ...)) 748E A0E8 1CB8 A748 9BFA =2D-------------------------------------- 6CE4 6703 2224 4C80 7502 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAljt2uQACgkQZwMiJEyAdQI90wCeKiTS6Kai/wD5LAuzMqatafOA SFIAoNRW/F7JcbYhAhwsgGoCY061nxHO =hf0P -----END PGP SIGNATURE----- --=-=-=--