From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Nicolas Petton Newsgroups: gmane.emacs.bugs Subject: bug#27584: 26.0.50; alist-get: Add optional arg TESTFN Date: Tue, 11 Jul 2017 10:08:40 +0200 Message-ID: <8737a3qttj.fsf@strawberry> References: <87tw2rva7v.fsf@calancha-pc> <87mv8j6y1z.fsf@petton.fr> <87y3s2m76v.fsf@calancha-pc> <8760f562bo.fsf@petton.fr> <877ezk3g4p.fsf@calancha-pc> <874luovf7a.fsf@petton.fr> <87shi8tzkr.fsf@petton.fr> <8737a858so.fsf@petton.fr> <83wp7jl9uf.fsf@gnu.org> <83lgnzl7rl.fsf@gnu.org> <87inj3411g.fsf@petton.fr> <83a84fkv7i.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1499760556 20604 195.159.176.226 (11 Jul 2017 08:09:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Jul 2017 08:09:16 +0000 (UTC) Cc: tino.calancha@gmail.com, 27584@debbugs.gnu.org, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 11 10:09:12 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 1dUqED-0004pk-Rj for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Jul 2017 10:09:06 +0200 Original-Received: from localhost ([::1]:44852 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUqEJ-000709-Ay for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Jul 2017 04:09:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUqED-0006zr-UI for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 04:09:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUqEA-0006dh-Pm for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 04:09:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58885) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dUqEA-0006dZ-MJ for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 04:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dUqEA-0000Az-9T for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 04:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Petton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Jul 2017 08:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27584 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27584-submit@debbugs.gnu.org id=B27584.1499760529659 (code B ref 27584); Tue, 11 Jul 2017 08:09:02 +0000 Original-Received: (at 27584) by debbugs.gnu.org; 11 Jul 2017 08:08:49 +0000 Original-Received: from localhost ([127.0.0.1]:33329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUqDx-0000AZ-GH for submit@debbugs.gnu.org; Tue, 11 Jul 2017 04:08:49 -0400 Original-Received: from petton.fr ([89.234.186.68]:34448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUqDv-0000AM-MX for 27584@debbugs.gnu.org; Tue, 11 Jul 2017 04:08:48 -0400 In-Reply-To: <83a84fkv7i.fsf@gnu.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=petton.fr; s=mail; t=1499760521; bh=j4kVD07ChYXbZkEQocneB/nxGrZ26tB8PTrpDfVyLtE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:MIME-Version:Content-Type; b=EYEHSRIxyUcoAKJ2CpW2QGayMkFJlUl2w55UZan5y97c8zRwclNR4qcEX/6YSqnSccTMwSmWwT/kmUQuXSdEViejHX7Zh4xEuyJ1mb84hBh4Xyh1uxOd7L9oUDGov9EBXCTao8g3Ro66DUtV1AFBtkSM75gQqfo2A4ct5Q9vn+M= 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:134427 Archived-At: --=-=-= Content-Type: text/plain Eli Zaretskii writes: > Something like this: > > FOR_EACH_TAIL (tail) > { > Lisp_Object car = XCAR (tail); > if (CONSP (car) > && (NILP (testfn) > ? (EQ (XCAR (car), key) || !NILP (Fequal (XCAR (car), key))) > : !NILP (call2 (testfn, XCAR (car), key)))) > return car; > } I installed your version in master. Tino, would you like to adapt your patch to use the new assoc? Cheers, Nico --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJZZIeIAAoJECM1h6R8IHkQqzsIAJzLqizGAC48DJ8vQ15YF0cl zEUemBL+PFmAzYni1IPpxjy2lIDBwu4ZJpddMtyZ1zzan4i1hhewV9jgk20mCJWv 9J9W/2ADLgTlZ9H9ZgGDviBpYbcHb4+CY3VtgngDoQQrdQtoVDPmska2jaGi6ocA PaFak3mKjpYFbHKlTKTHLNmkIRZISrowl0I82X+Z2tqW47P/v61KU7gbspnG+/Mt uWa/8Bb0griSTnp8Bc/tHEyb9MlxM/6T7YrV70rgt6kDgUFLkzSTsbtAK4XCNCz9 U20gTkcqYI+39MACuNF2exiU0wlUbpWYCrnchsfVLVf2cZsIENgkm5P2zMhDe3o= =rNFy -----END PGP SIGNATURE----- --=-=-=--