From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#47368: [External] : bug#47368: 28.0.50; map-elt returns nil without "deprecated" TESTFN Date: Fri, 26 Mar 2021 20:04:44 +0000 Message-ID: References: <87sg4kyw1q.fsf@tcd.ie> <87lfacvtwt.fsf@web.de> <87sg4h21m5.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22947"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Heerdegen , dalanicolai , "47368@debbugs.gnu.org" <47368@debbugs.gnu.org> To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 26 21:27:50 2021 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 1lPt3d-0005q3-6N for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Mar 2021 21:27:49 +0100 Original-Received: from localhost ([::1]:47774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPt3c-0006yM-3C for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Mar 2021 16:27:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58996) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPsha-0004HH-Ha for bug-gnu-emacs@gnu.org; Fri, 26 Mar 2021 16:05:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59251) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lPshZ-0008Dj-RP for bug-gnu-emacs@gnu.org; Fri, 26 Mar 2021 16:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lPshZ-0001OU-Lk for bug-gnu-emacs@gnu.org; Fri, 26 Mar 2021 16:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Mar 2021 20:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47368 X-GNU-PR-Package: emacs Original-Received: via spool by 47368-submit@debbugs.gnu.org id=B47368.16167890975345 (code B ref 47368); Fri, 26 Mar 2021 20:05:01 +0000 Original-Received: (at 47368) by debbugs.gnu.org; 26 Mar 2021 20:04:57 +0000 Original-Received: from localhost ([127.0.0.1]:42564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPshU-0001O7-OW for submit@debbugs.gnu.org; Fri, 26 Mar 2021 16:04:57 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:55952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPshS-0001NT-V0 for 47368@debbugs.gnu.org; Fri, 26 Mar 2021 16:04:56 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 12QK4YwV174253; Fri, 26 Mar 2021 20:04:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=8ldtj8jbRkReE7Z0psg5dYRdB9PvhqhjMMunqy61fvk=; b=VC93xhjTa5ZtfepdJgVAuXxl36FPDUBzwbKXgA+zD9zAKxHmxsidzlknlVTRUyMMQnUU PC7dI+IcZXOukEsKHUByxXOlZ2zbW7fy7FAQHgvgZ2AVyHxVemBJbG3Cwj4ODTHx4j1q AfdnEh8Ujd43Rw9utEHGXbNZhhVcnkHFEC/+UNg/d99Fzwhb5B72oV6XIjX/Qqk5H8Cm kY/tG1U/cCegrMPJE5OhqSHphOh3Pf6DZ8vBSKRXoKQbV09uIS+y9yCSDp2c7zKLIwcb aCEfuM9pMZ+uET8Q9qwsoEHsP0LRg8IYVwEPs3gfzrpw9STGjHLPtBVRJ0hkF8dtayqd lQ== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 37h13eb9hx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Mar 2021 20:04:49 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 12QK1BaO099410; Fri, 26 Mar 2021 20:04:48 GMT Original-Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2044.outbound.protection.outlook.com [104.47.66.44]) by userp3030.oracle.com with ESMTP id 37h13y3ynj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Mar 2021 20:04:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l6upuCY5eOJNTA3UMMJyUscCHlagILT0nf4dBlVNkh86Y3mpFQiY+7mWuDu6DdOmcWQKFfuI+C89VaKsgIAcZBAX5Acd+GltM6wtATDfC9N2LwV/QvF5oPi+5r2BKSloaMgm8hIVODUm3NvcFBlqMqGN/hJa2mK4dEtI/w3+KtKkSHgDh+P7qG3wCpyIM0UwGdY2GjZG+B9DHRkPVRZKBE8xt8FfYNFbAaitvO/vD/8s59guUNf1yAGdYu5SmIPvFMUbqjmKHEZPpzg7Z5QCLnF9cGcGOQl4TexNb6CpMGQB0MC73LzgIxlBna3EV5i1dzvRvvuHCPXayklUBWuhrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8ldtj8jbRkReE7Z0psg5dYRdB9PvhqhjMMunqy61fvk=; b=e48ECblD0zan4X9H3kyuLHH25pOApBwJ9L5OVPjJUis7qFlNaX/HleBn9TVY4I1Y0blWRzPse700GqntZuVxIhxYifumzvk4HvFepwjh3jwIqJNOkLzIieWy43nzwmMzqyx87CjoVYYm7nOtrkXXrdG5fJN8gr5pCGcdyimS6RJJPPN3zuOXn3F45iK5OSqMPgFLsBAGsM9T7xIkOse4iO+uV0SzYlP1j/n18fpDbGrh6svryNY7ipqXFTOhh1WABj+r4PagtpDxVbyrfdniqXKvkwd58nLYReHGEB6MeWroVdjpjC9wBSt+3v8AfwDSJ+qA/iMhTxwSa1t3+6aPvw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8ldtj8jbRkReE7Z0psg5dYRdB9PvhqhjMMunqy61fvk=; b=PkgWlLxpAZ//BkBzrIZDqClKziT7W0/+AHd/PEaWzum0wvS282fbGhuIFJjELaHygqQZ8kfkO/Vgn4T2W+QwvlpAVSzaL8VRx7ELf8Png9T1fAzNhSLJ0m7opQBAa3HAVPuPz7xmSNNJ9aT1GKJviMQGaJeM2O4Iu/p2KNKIJ4M= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SA2PR10MB4475.namprd10.prod.outlook.com (2603:10b6:806:118::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.29; Fri, 26 Mar 2021 20:04:44 +0000 Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315%5]) with mapi id 15.20.3977.030; Fri, 26 Mar 2021 20:04:44 +0000 Thread-Topic: [External] : bug#47368: 28.0.50; map-elt returns nil without "deprecated" TESTFN Thread-Index: AQHXInCIziN40bI+Vk20GBwT06mSG6qWrr4w In-Reply-To: <87sg4h21m5.fsf@tcd.ie> Accept-Language: en-US Content-Language: en-US authentication-results: tcd.ie; dkim=none (message not signed) header.d=none;tcd.ie; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a2af2eae-ecac-49ec-bfe4-08d8f0926679 x-ms-traffictypediagnostic: SA2PR10MB4475: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: LQH9eKGDEpp38rylEyeHsroy4uZUiGPaiy3Y+39Ju1QOD2682TD3W3/4DOurwE2aJ2LWYAFQPv5xd6jAL0iDfsRfEVTOikC6WdM8wRWL7sxgHZNnfde5iQPr7yA7pNEtWW55Ui+Z5YpHkRU/VmxBqfBPm//2xu5nn/ycbkBRY92ueGi1WtzCinZT04FaA6KGN19008CDU/IJ9s/7RqlFSIzOW6vZeNu55o20oux9x9qzFTo0xBqunzT4r/3GTOVV49elH/x+7StoSfpzOKY73Wg+iQAgSfT/dlJV9FdUYkgfNLzWAme6/QYStlyvhh/1xshI81CdYU6tlOwQUj9vwFiybvTMkPjTBQMz5EZGcA/js7TRsFt6z70anIkZIdfuSyHKb1g6rm5YeOdvgSBJDUt4zUzvI36QYlLjsaacmZXDlzeB3cPolfS4QsmsU0c7Erm9tQWWtI6nkr6SuGrpwUThjqbgD0Un0j4XzexJ67uHOtx3jVoSc+se5W7pRNo9zVCKNTgRsy+fc6oABGJD+MqLVy3ybduCXxfYGjEFEWGryqAp6y/WOTh59iPPmT/3fG326wXJCoMtqlPBYEgJX6VQrdnOnmMZjgyW5LxLK/qzRyGRDJ5WxZ/qPgVJewhLlpbPU/eusCNWbTTUNIHgr9JWNjhsYZR5kyMNfjBx9mk= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(376002)(396003)(366004)(39860400002)(136003)(52536014)(9686003)(316002)(296002)(86362001)(2906002)(33656002)(5660300002)(71200400001)(6506007)(8676002)(55016002)(38100700001)(186003)(83380400001)(66946007)(44832011)(8936002)(64756008)(76116006)(66446008)(478600001)(4326008)(7696005)(66556008)(26005)(54906003)(66476007)(6916009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: tJIFUrkSYbK7BejdazzghP/mwKN/WXnjeG7O91jZuHP60C5P6Xja5lN2r58u+XiyE1AhfoKdQgR9VZgwCy4fm/tF7wepUxQ9u83YXPXpwNqbmmqzPhwxuhorgVBCTFI/Vl88DXzw+LQtYDYfhdOqZ0Yfm5h0GJvlhm+xdCPp2GGgtuyBvghssrCbmtnB2e5J4VkODHUVKeldoM1Yd0JKxBnSzPOttCYVOm5AmWDju3cUHCXx0zGDzyfNfePJ9d66jlVwQ7S6Bs6mDhtEpxMbUzzWcvQS4/gDmjElMqC113A40gOIxLVntZddEuUaVZcJ+Njj78E0BhJAjO3NGUmL8QehzYbNlE50B9zy5Ow7A+5ls9KSWaL1Ge8nNozCCfDuDV8bHilQs+T3ihzFT6g+Ia4TpbaA8ntN8GCbYAOYIc5HPWOaiJOcvXSWVZjg+xa8h6rjEITn8vJnmNxpeWT1hTxeeaQe0ChCbOzikF9tlm4lLnDmF8vgz1Xjz2RyOOwEsOGkeWQaYw3h/28Q6p961h0rWi2dIy2gX1uckWZT9R961vYeHXzaMMaihLbQX5tIIo8vKcCE3XnPqh5GxXak7jt53LkAWacyV6FgoIIXx6m8ZkAx12Nm6vBHs0OTedXQCFdeKuQET9uEMfSBOKMtGSbdcUuTl0bcbOKos6ydRXH97O7AqRGl9azKWPO9JUdpFOG/5MAKI+FihoXAPIZCmDCEVlrnweBebpGIjWUPnwRO+04Ba1DwVgEZhajV f5xB3jwA6ZaOR/1LZyqHTHAGxr57V+xnoNlBHbtaaF3k61MB8H7mcHF22b2KQmE6IG8D2ymkX3uQICizbJnIukvE6DEKhv2jzK x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a2af2eae-ecac-49ec-bfe4-08d8f0926679 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Mar 2021 20:04:44.6807 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: wkzyBZCNCO5+Mvan1tLwYYyT0rmQCNHoCJ1/YamAak4dfi/5NROWrLzRvMyxKeTvz7fSM+8CFgIEmT9p7qApTA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4475 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9935 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 bulkscore=0 spamscore=0 mlxlogscore=961 suspectscore=0 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2103250000 definitions=main-2103260149 X-Proofpoint-ORIG-GUID: zqcpBo8KilbuB-9tSRvI_I45Vz3vvzB4 X-Proofpoint-GUID: zqcpBo8KilbuB-9tSRvI_I45Vz3vvzB4 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9935 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1015 lowpriorityscore=0 bulkscore=0 malwarescore=0 priorityscore=1501 suspectscore=0 impostorscore=0 phishscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2103250000 definitions=main-2103260149 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:203071 Archived-At: > >> > This is expected, as alist keys are tested with eq by default. > > > > Since when? >=20 > Since the introduction of map.el in Emacs 25. The general statement you made, that alist keys are treated with eq by defa= ult, is false, AFAIK. That may be true of `map-elt', but it's not true in = general (AFAIK). > > Where? Expected by whom, and by what code? >=20 > By the function being discussed. Does the doc string of the function being discussed, `map-elt' say this? D= oes it say anything at all about how keys are compared? I have only Emacs 27.1 - the latest release available on MS Windows, and th= ere the doc string says NADA about how keys are compared. Nothing about wh= at it means for "if KEY is not found". At the very least, if such is still the case then the doc needs to updated = to specify how keys are compared, IMHO. I'm hoping that doc more recent than Emacs 27.1 already takes care of this.= You say, for example: That's what the docstring is trying to warn about: alists default to testing with eq, but can also use eql, equal, or anything else. I don't see (in 27.1) where the doc string warns about any such thing. Nothing about eq being the default, and nothing about testing being also possible with the others you mention. Not only that, but the doc string says that TESTFN is deprecated, but there's no other mention of TESTFN. What's TESTFN? Where is it specified? It's not part of the function signature that's shown. How can you refer to it if there's no indication anywhere here of what it is? This makes no sense to me. And why is there this line at the end of the doc string? Undocumented What on earth is that supposed to mean to a reader of the `map-elt' doc?