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: Thu, 06 Jul 2017 16:56:59 +0200 Message-ID: <8760f562bo.fsf@petton.fr> References: <87tw2rva7v.fsf@calancha-pc> <87mv8j6y1z.fsf@petton.fr> <87y3s2m76v.fsf@calancha-pc> 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 1499353096 28028 195.159.176.226 (6 Jul 2017 14:58:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 6 Jul 2017 14:58:16 +0000 (UTC) Cc: stefan monnier To: Tino Calancha , 27584@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 06 16:58: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 1dT8EK-0006qt-8i for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Jul 2017 16:58:08 +0200 Original-Received: from localhost ([::1]:51875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dT8EP-0004GB-Hm for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Jul 2017 10:58:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dT8EH-0004FA-Ig for bug-gnu-emacs@gnu.org; Thu, 06 Jul 2017 10:58:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dT8EE-0000Dm-CI for bug-gnu-emacs@gnu.org; Thu, 06 Jul 2017 10:58:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52593) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dT8EE-0000DX-0q for bug-gnu-emacs@gnu.org; Thu, 06 Jul 2017 10:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dT8ED-0005yB-Js for bug-gnu-emacs@gnu.org; Thu, 06 Jul 2017 10:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Petton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Jul 2017 14:58:01 +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.149935303222893 (code B ref 27584); Thu, 06 Jul 2017 14:58:01 +0000 Original-Received: (at 27584) by debbugs.gnu.org; 6 Jul 2017 14:57:12 +0000 Original-Received: from localhost ([127.0.0.1]:55270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dT8DQ-0005xB-HX for submit@debbugs.gnu.org; Thu, 06 Jul 2017 10:57:12 -0400 Original-Received: from petton.fr ([89.234.186.68]:34288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dT8DN-0005ww-MD for 27584@debbugs.gnu.org; Thu, 06 Jul 2017 10:57:10 -0400 In-Reply-To: <87y3s2m76v.fsf@calancha-pc> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=petton.fr; s=mail; t=1499353023; bh=StAMUhKiht69k9vA6k/XiTqvtmUS79HXf55Y6szohF4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:MIME-Version:Content-Type; b=S1wHEeH0v8kPjsivP7uekMV8YDHVKq/UdYCTaAJ9eWmecTAXSXvrnF4fePHJg4IZw8mAk2HO95MA+b1nfqUs3vrmQU9XmIPO8/TK66RcsGy0Ff0MZluc0N3V6saKGDa2LhG9Rimket2dIugO4qn2EQxYjszC67G8gXypad9lxzE= 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:134260 Archived-At: --=-=-= Content-Type: text/plain Tino Calancha writes: > 1. In my patch `assoc-predicate' is a defsubst. > Should does exit at all? I would inline its call and use `assoc-default' directly, but I guess it's a matter of taste. But wouldn't it be better if `assoc' took an optional testfn? I'm not sure I like the `full' parameter in `assoc-default', and I think the inconsistency of the return values between `assoc' and `assoc-default' is already confusing. Nico --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJZXk+7AAoJECM1h6R8IHkQt6sH/iw2a+vKxvJHQmxluHuV+HIg Ctbkiw01eSIDCze4G7EtPFk3Up11A2fp+lRv3ctK2hf13bJA7ilk5yY9d0XRmK0b FfXS+L8NT0BRbNpJYlJwD9ZC7M+xy+VxC3YCe4pBT/30bdQmuvSk93c1BoDcFjEZ pI02lpfPG+XFgk/FnKHn/rTgmT8nNrBmoS0QRh0g38ZLm9HwSK9wKlPiZbZV279Z 3Z7Er57mpgoqpN1zYoBg1iMcnuEKXVQaBrFhLSYGwYSouRdjpBG8gtjVPq4g89de jUW+rGRpH3cmkO31AE9cSli/pRGNPrImY4MKWk7g1K3pxh0TXes3CdmLXp/g6rs= =5ulM -----END PGP SIGNATURE----- --=-=-=--