From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#40972: 27.0.91; assoc TESTFN's args reversed? Date: Thu, 30 Apr 2020 01:30:13 +0200 Message-ID: <87sgglvpiy.fsf@web.de> References: <47D61E6B43780AC31D0B86@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="84846"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 40972@debbugs.gnu.org To: Shigeru Fukaya Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 30 01:35:38 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jTwEs-000Lzg-0E for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Apr 2020 01:35:38 +0200 Original-Received: from localhost ([::1]:50100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTwEq-0003eT-Mr for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Apr 2020 19:35:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45666) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTwDM-0003S1-Km for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2020 19:34:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTwAQ-0008OB-FY for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2020 19:34:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33365) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTwAQ-0008O6-3J for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2020 19:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jTwAQ-0002Rl-1F for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2020 19:31: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: Wed, 29 Apr 2020 23:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40972 X-GNU-PR-Package: emacs Original-Received: via spool by 40972-submit@debbugs.gnu.org id=B40972.15882030239344 (code B ref 40972); Wed, 29 Apr 2020 23:31:01 +0000 Original-Received: (at 40972) by debbugs.gnu.org; 29 Apr 2020 23:30:23 +0000 Original-Received: from localhost ([127.0.0.1]:44911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTw9n-0002Qe-0H for submit@debbugs.gnu.org; Wed, 29 Apr 2020 19:30:23 -0400 Original-Received: from mout.web.de ([212.227.17.12]:50509) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTw9l-0002QP-OK for 40972@debbugs.gnu.org; Wed, 29 Apr 2020 19:30:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1588203014; bh=XahDZyVIdEgpNoBu21YSvYBdiJdoRzewg1HQxQ1Nq2s=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=fJ/lotLLo79SXF5SX0jNCyno9h3XJpHEUzMoV6b5XpWizFcrukq/tPdiJnJxiTQ0E K+Nfzb3JXnujqz5hVmR8FuD7abVvk4L3RqFvkqUoXuLdaecAWtijTuTGAcmWfWBERQ ogguLMJDOnv0X9oixUzihX5feoxWszHe/CAS8ZUM= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([188.98.99.7]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1M6YJ1-1jWQCV2Q7F-0073xe; Thu, 30 Apr 2020 01:30:14 +0200 In-Reply-To: <47D61E6B43780AC31D0B86@gmail.com> (Shigeru Fukaya's message of "Thu, 30 Apr 2020 06:15:09 +0900") X-Provags-ID: V03:K1:/+H8RTpj8CV2VHyeE1sUmIbEktvWAMQU+U5Bxp933mveMezWwIV Ac6U2ArooXB+yF+fjDBeuhjE/LLAd6Cd/psZtzk8z6q4GcjGRSmd3FnIKxI2805sr61JdxO LdzcP1QLyTSs42O7Xv+fgOST04D7cpGTiVMrpPheBIHCOU5y2vFE6HU+RBfPDXBHsGElPuK jepT7RQaMSQBvPcZv8oDA== X-UI-Out-Filterresults: notjunk:1;V03:K0:72nsVN4SHqE=:ZBMMp1ly/D0++BnQgTyrhc +62L+jOGAx6mln+bCeuRfZxvGow+IC5RwuM/dN+S8meC6/ADN+pHMAHuQEACZD7O3meX18266 ni+0zWWAjxmQTFZnIXvur/O6mysVY0x41eaRbNipLSJ13qZJK8RaPpW1eBSsTAExDf3TxnT5f qP0ytmFTYt/7lJFRNUMtdbZ+maVE1WiBFzDMMDHPjZXocRJgUpLvwmPnx/DvoD2wFYKR0cqxX tINzS5d57IGttXtWlt7MZl/YCwMnF0npY6qEcCZGLNtGUfiydJK1HWPa5btQzsltkJES3JrGZ 5uV2dP2MXIk4ic6buwAxfj89tT2KF3ha6zbss73CYmZevJ4n93Os0ZNsymXup/EodOr/bJfIA 9udULw11g01yqBZPgGxWkdsHbZowEYxB1uyf/kuGnvCNDbt9Yt/U85Dsu82js7tUFf9g6aRXg 1gCqFdNKObE+yJBeM98BtjERcdz5eWEi+7q1SKs/xuj9ky+gYMcVeYFm0acchBq2g6jtlSS+7 PS7iEpdmdzhqUQaedoKn7je4bA4UyXlzOraCyDqcJBNFfaEDRzErP9mmaHt7dtC7R4XbnbXXc 69C3ZPFPHZR295SggO5b9YtgPxv0/UePAQSREzNJjXv0T3dZrIkeQ/DTxTvm2WdYQgbwwFKKv fCb7jop1RqJfdNiUGMCkSmiXUYk39y8hMQzIJ4vgTcYFjfZ4vSndA3i300A+VF18xuC6+EJSX 2aHGP3wnQJCuWX2nB45xXh8czX5F9c5Xf9kg3vMHNIl9XdBJVrE8/Ce5mfsOmkc5hfyWM1Mo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:179362 Archived-At: Shigeru Fukaya writes: > It seems to me, for third argument of `assoc', arguments are passed in a > reverse order. > > (assoc "assoc" '(("cl-assoc" A) ("cl-member" B)) > (lambda (x y) (equal (concat "cl-" x) y))) > ==> nil > > (assoc "assoc" '(("cl-assoc" A) ("cl-member" B)) > (lambda (y x) (equal (concat "cl-" x) y))) > ==> ("cl-assoc" A) > > Or, is this intended behavior?? Dunno what others expect, but note that your predicate is not an equality predicate (it's not symmetric), and the docstring doesn't specify a behavior for this case. Michael.