From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#37450: 26.3; `all-completions' PREDICATE for a hash table COLLECTION Date: Wed, 18 Sep 2019 11:26:05 -0700 (PDT) Message-ID: <7d0182de-dba2-4850-b3c5-6ae6b336c44b@default> References: <140d4456-6455-4e48-b3a4-db9b13d6787a@default> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="168346"; mail-complaints-to="usenet@blaine.gmane.org" To: 37450@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 18 20:29:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iAehS-000hb8-PX for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Sep 2019 20:29:10 +0200 Original-Received: from localhost ([::1]:34266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAehR-0003uf-8m for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Sep 2019 14:29:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50501) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAehL-0003uX-F2 for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2019 14:29:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iAehK-0003pb-HH for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2019 14:29:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45989) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iAehK-0003pR-DI for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2019 14:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iAehK-0003H5-7c for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2019 14:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Sep 2019 18:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37450 X-GNU-PR-Package: emacs Original-Received: via spool by 37450-submit@debbugs.gnu.org id=B37450.156883129612522 (code B ref 37450); Wed, 18 Sep 2019 18:29:02 +0000 Original-Received: (at 37450) by debbugs.gnu.org; 18 Sep 2019 18:28:16 +0000 Original-Received: from localhost ([127.0.0.1]:54810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAegZ-0003Fu-L3 for submit@debbugs.gnu.org; Wed, 18 Sep 2019 14:28:15 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:60248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAegX-0003Ff-VU for 37450@debbugs.gnu.org; Wed, 18 Sep 2019 14:28:14 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x8IIJLHR081724 for <37450@debbugs.gnu.org>; Wed, 18 Sep 2019 18:28:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=b86sbSELuyjK4IfYjvvQPyDk9MYJWcxEDljNTWxfDCw=; b=S++qDEZbB3dfoOo2iBxEWohSkPXDa++5wjIML6053zxvMB0L4XfzX7sqUUbneapV0OYb Pxk3qKBtrR+dHM5LOBN28Hcl0jAoSbGXCq82YlnhAN/r/6LZ4BeKXuDsw4S8BaVhwxYA 0JdjjpWbiTe5N/sDwk1/9CG1oYvBLuSnhA7SKjXbWA2YP8dmdOWPVKTOSkaRbqRBx4pf FpvAYfoCaxkGI5gnTh8f59YyBgSWTzqjPVZzL9KccQCeQA2IMXuj9QpxYfKArrAKA7sJ ACXzMdeXGvSnHgYVAZa4vxzccnhze2bWGimKv+PcmVcYwpEcXfoP0PcVFxdECCt+6JAA sA== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 2v385e5rbu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <37450@debbugs.gnu.org>; Wed, 18 Sep 2019 18:28:07 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x8IIIZEY020734 for <37450@debbugs.gnu.org>; Wed, 18 Sep 2019 18:26:07 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3030.oracle.com with ESMTP id 2v37ma384w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <37450@debbugs.gnu.org>; Wed, 18 Sep 2019 18:26:07 +0000 Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x8IIQ6GY009189 for <37450@debbugs.gnu.org>; Wed, 18 Sep 2019 18:26:06 GMT In-Reply-To: <140d4456-6455-4e48-b3a4-db9b13d6787a@default> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4888.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9384 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=13 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1909180162 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9384 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=13 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1909180162 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: 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:166683 Archived-At: > (all-completions orig > THE-BBDB-ALIST > (lambda (sym) > (when (bbdb-completion-predicate sym) > (push sym all-comps)))) >=20 > I had to change that to this, adding an (unused?) arg for the PREDICATE: >=20 > (all-completions orig > bbdb-hashtable' > (lambda (sym __) > (when (bbdb-completion-predicate sym) > (push sym all-comps)))) I shouldn't have been so definitive about that "fix". It apparently didn't work - the user now reports a different error message, saying "Something like two arguments but expected one." I don't use BBDB, so I'm flying a bit blind on this. Hope my bug report makes some sense in any case. My question seems reasonable, at least in my relative ignorance: why must the PREDICATE take also a VALUE arg when COLLECTION is a hash table? Why isn't KEY lookup sufficient?