From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#27584: 26.0.50; alist-get: Add optional arg TESTFN Date: Mon, 10 Jul 2017 15:18:26 +0200 Message-ID: <8737a4mnvh.fsf@drachen> References: <87tw2rva7v.fsf@calancha-pc> <87mv8j6y1z.fsf@petton.fr> <87y3s2m76v.fsf@calancha-pc> <8737a83fq6.fsf@calancha-pc> <87mv8c31cc.fsf@drachen> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1499692759 25588 195.159.176.226 (10 Jul 2017 13:19:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Jul 2017 13:19:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Nicolas Petton , Stefan Monnier , 27584@debbugs.gnu.org To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 10 15:19:14 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 1dUYaj-00068S-Rm for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Jul 2017 15:19:09 +0200 Original-Received: from localhost ([::1]:40754 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUYap-0006qh-AM for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Jul 2017 09:19:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUYag-0006qY-NO for bug-gnu-emacs@gnu.org; Mon, 10 Jul 2017 09:19:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUYac-0004I7-Mv for bug-gnu-emacs@gnu.org; Mon, 10 Jul 2017 09:19:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57092) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dUYac-0004I3-J7 for bug-gnu-emacs@gnu.org; Mon, 10 Jul 2017 09:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dUYac-0007sc-E4 for bug-gnu-emacs@gnu.org; Mon, 10 Jul 2017 09:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Jul 2017 13:19: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.149969272330264 (code B ref 27584); Mon, 10 Jul 2017 13:19:02 +0000 Original-Received: (at 27584) by debbugs.gnu.org; 10 Jul 2017 13:18:43 +0000 Original-Received: from localhost ([127.0.0.1]:59769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUYaJ-0007s4-El for submit@debbugs.gnu.org; Mon, 10 Jul 2017 09:18:43 -0400 Original-Received: from mout.web.de ([212.227.17.12]:60485) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUYaH-0007rq-Ow for 27584@debbugs.gnu.org; Mon, 10 Jul 2017 09:18:42 -0400 Original-Received: from drachen.dragon ([88.73.234.235]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MgfJz-1dHXdq3Csh-00O079; Mon, 10 Jul 2017 15:18:29 +0200 In-Reply-To: (Tino Calancha's message of "Mon, 10 Jul 2017 22:02:34 +0900 (JST)") X-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E1HVVauWjtns84ZSJZYc 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:134398 Archived-At: Tino Calancha writes: > > Is this a good idea in general? PRED could also be function-quoted, > > or a variable bound to `eq'. And KEY could be an expression that > > evaluates to a float. That would fail the `floatp' test. > Well, this code is now in the 'Limbo', because we are thinking > to use the Nico solution (`assoc' having an optional arg PRED). > That said, its fun to discuss about it. > You know, this compiler macro is inspired in the one used by > `cl-assoc' i.e., `cl--compiler-macro-assoc'. If you find a problem > on it, then the same problem might arise in `cl-assoc' :-S I was wrong about your handling of KEY, I think it is ok. For the PRED, `cl--compiler-macro-assoc' uses `cl--const-expr-val' that DTRT for function quoting. The compile time optimization is limited but doesn't look wrong. Michael.