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#30458: [External] : Re: bug#30458: hash table reverse-lookup (get-keys VALUE TABLE) => KEYS Date: Thu, 12 Aug 2021 15:08:01 +0000 Message-ID: References: <35ab0734-9032-4331-90e8-825f58fba059@default> <18b6852e-c4c7-4fa9-ab8f-916c10d001a8@default> <874kbuk9p1.fsf_-_@gnus.org> 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="3349"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Andy Moreton , "30458@debbugs.gnu.org" <30458@debbugs.gnu.org> To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 12 17:09:14 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 1mECKX-0000b0-7B for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Aug 2021 17:09:13 +0200 Original-Received: from localhost ([::1]:56750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mECKW-0000U4-8C for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Aug 2021 11:09:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33834) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mECKN-0000Re-KF for bug-gnu-emacs@gnu.org; Thu, 12 Aug 2021 11:09:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56392) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mECKN-0000is-DI for bug-gnu-emacs@gnu.org; Thu, 12 Aug 2021 11:09:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mECKN-0004lq-8I for bug-gnu-emacs@gnu.org; Thu, 12 Aug 2021 11:09:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Aug 2021 15:09:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30458 X-GNU-PR-Package: emacs Original-Received: via spool by 30458-submit@debbugs.gnu.org id=B30458.162878089018193 (code B ref 30458); Thu, 12 Aug 2021 15:09:03 +0000 Original-Received: (at 30458) by debbugs.gnu.org; 12 Aug 2021 15:08:10 +0000 Original-Received: from localhost ([127.0.0.1]:39691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mECJW-0004jN-64 for submit@debbugs.gnu.org; Thu, 12 Aug 2021 11:08:10 -0400 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:48872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mECJS-0004j9-Pt for 30458@debbugs.gnu.org; Thu, 12 Aug 2021 11:08:08 -0400 Original-Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 17CF5Q8X029749; Thu, 12 Aug 2021 15:08:06 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-2021-07-09; bh=CMDuM1bjuizVyWfDT7A+MbC34yhzBptqn0gBsfbyUqE=; b=GK6Ayb3CgVNO4SA+NgPeAA3gQUkiDbzIwW/AcN/opxo+znKRr5b760UFqbIAau/Iix/H 1w7e29aKsKjJX0WVip2hZkOrtny4CX6+NP1hcebmaN67Fx207vrsGTBtoTG2BU7nEPd8 SsOgrP6FFAJfZj3C+H0q8zO0wCQYpryJ7yyI4idAHjf3TmoHvTB/OB3MlR8csIPtkFoV xsV9aBl0UzVVF8hcAiQcpnvcHw5D+AONoQHoxwKmeBG/kA1XH1/pHEiuZMuoJbTWMoeT BbUVdskq0czO4BleLJ3xxrFzq4pOdX1ytJW9rp7ulP4plNBGrYBf74CQVlABYe1EdEhI qg== 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=CMDuM1bjuizVyWfDT7A+MbC34yhzBptqn0gBsfbyUqE=; b=sN+IzgxTfgjGjLj4G63t+t9oUlbptIgMi7+h/aeF6ZgAqlTHJH5zqzUpq/Au/Nma9XE+ /7ByANlguU/9iFPgHWBocH/VZRsTouecC1DZ867x2/edPrTXk763S4pvcexVIS1L8rnY MXm6mJm9DEYfwo4080+uyK/C2gwWQuUmrtiKLWXymJGFKodHnlX91nQjw1j6On2eWGMd /gftF/1S8zkxbDJXpKNFMT84D/g8r6BO9T3kAdG7wKlYeA2DXmu0NfiiJ5tP8/ZNByIv B9E3nKVnpDHMrvJ2cpwI1scCbsw15aFdiwNrqFNFWj6z4gIEO+znB9OhVm+ME0URQPj1 Pw== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3ad13v8qy5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Aug 2021 15:08:05 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 17CF6NOh029236; Thu, 12 Aug 2021 15:08:04 GMT Original-Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam08lp2049.outbound.protection.outlook.com [104.47.73.49]) by userp3020.oracle.com with ESMTP id 3aa3xxgq02-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Aug 2021 15:08:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AVBPLf9RtigJ03EFHIuwizqtf7DdOa70+e+OQmmgrbyocaTJGKh/uQ/3oBVSLNBdkAhnHEKM2pSliZGAqWJ3GyFLN3d+j9LS/LYVfkayWP4rj/3L5FHj5ShfomJK6F3HRpgZyoIgENNamZGADlGKTZPZysdLhWcG40OLCG5fivkr6e8EQ2Pqt7Pds2UdHutt2IGqXyeL2X6n9oUB7lav3fdi47Zt9gk31paprlFIiz3+tMHcOmD/shtyioX56iu4jhuBoRFn2JQY22+gI2aiJ+cYwozIbtS6y+saCB1H5djOYexdr2E+zWtwWE0ZPAKiiyD0or9AEiaC+x7kzDAsSA== 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=CMDuM1bjuizVyWfDT7A+MbC34yhzBptqn0gBsfbyUqE=; b=AbkFwScjeHUqk0l/9FkHvU6ZHijjvyrCmoHOxQR9F6qNtLxtzwV5Z4GeEFJKo4GihDz396aHUjk75bt/B1iomzw7B+w7Pjf52EnwAHCC+b49cbOwesMaqq69S8OnYB5OODiJG4/SQ0cleHt/fxao99hDf3zVzv5wAZ6dmlnNBtp3EV6xGC7/g90IL3BJyN+9PSqMJ72su97SRTNUGwuT8sNTEyvEQAp8PJalkt6xt0hQODash82PMsUuXnUL6FSFd8nVDAiKUcX/W2phDV+Yt76KxCxz2wxzxndAKevB1STJrfG5bNeW6eRRCdxvZMbyJVuhawWvbH3pVxt/WfON2Q== 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=CMDuM1bjuizVyWfDT7A+MbC34yhzBptqn0gBsfbyUqE=; b=VLKcD6dObj8iqldTeSwZaJbNsXsISbm5ENmlIElVNR18You30NO+hHOHLz50yiG0pOauM6Xd9ur6zv0FlUBqc1g9Iw1cu8EYOsCZT90UopwR2YayP5yN+xfIeWHw6fazBYMEehFw0O8KgSXn2DOtpm1kfzpyms+x+HtfcpYxjsA= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BYAPR10MB2488.namprd10.prod.outlook.com (2603:10b6:a02:b9::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.18; Thu, 12 Aug 2021 15:08:01 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::a59e:fa26:ffe4:615b]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::a59e:fa26:ffe4:615b%3]) with mapi id 15.20.4415.018; Thu, 12 Aug 2021 15:08:01 +0000 Thread-Topic: [External] : Re: bug#30458: hash table reverse-lookup (get-keys VALUE TABLE) => KEYS Thread-Index: AQHXj4gPraHyJPpQm0SUkNfcUqfOXatv883g In-Reply-To: <874kbuk9p1.fsf_-_@gnus.org> Accept-Language: en-US Content-Language: en-US authentication-results: gnus.org; dkim=none (message not signed) header.d=none;gnus.org; dmarc=none action=none header.from=oracle.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8abca92b-fc6e-46a5-0271-08d95da2fa54 x-ms-traffictypediagnostic: BYAPR10MB2488: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2SJXz+FWKSZcMjD/reA7/aYYCGCQMWU5RcICdmTaOwxPUX4GTzSCILNOlDPWKRVnGXhXhfmqRCCTC607tWRvnxvaPTD07BdoLxcKStUsn0r7/DOiMUTdtQSr/VhqAwIkbIseYSQrWZWbgGocM5+qYHWInE13EuRBQa7yUThj5G9EzCWzZ5yoOGPF34hMUpmbMDLDjw697GP3srMxZYch84c3uZnkGxA6cjv3ml1p3VFoZcNdBklhni9pqGUyen8eL96kgVu0ao93qliCD+2n/YXygte+2KdQXzPvcX9KMmG8kILf7rpv4NLcGAZo7EesYapdAmRXec+PIsHVHEFiEXv//Hz3ySUIWdjoW5WPScCjIk3Fw/sPBSkm4UfL4xMZxJq0yBbML4TMC8fKysNPo2uEfdTgPR+blK6i51iOwhmQvyemrTyUvtu8xGfJF3NuzV29aSBotjgsJ4xVrogtfVRe4Dn39bMtxT8Tp75aQ9UCW5h92E5fyJvvTOmfQ3qfEcrxka+QKRGSNYT0UST6bgcNUk0RLxvI4xiok8zSxTgtrtxmXW4vV/MowKF0Qrf/7qdwV+lNvcJm7yfDhzP8o2Ouox/rICYJr467kZnvh2ykoGfxRJwzOcpYMyDB/Gdz+esXEcCuZ2N4J2tToMEJlqSfFAyUYRIhWJEIWTEzb2HGBEGnn098CoiohsY3ndsxJC1/5B9bmmg22M3OwF/pmA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(396003)(376002)(136003)(39860400002)(366004)(6506007)(55016002)(76116006)(64756008)(38070700005)(4326008)(52536014)(9686003)(26005)(66946007)(66556008)(66476007)(71200400001)(66446008)(8676002)(44832011)(2906002)(478600001)(8936002)(6916009)(38100700002)(83380400001)(54906003)(122000001)(316002)(86362001)(33656002)(5660300002)(7696005)(186003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: P4g9pzzRuXzQFkkIjtyvf/abs1Ycn9lshFpAA7fsJfF2PqCihOf7X3trwCjtQOZgVswJwvOA4UxzYtg4XRNrpcacVpW8t2/fJwzQFvL+yz8kxK1VE5wcnf6LFAvAz2kQyySMo3yGP/6PxYvO1I1eZZG98cXOV2jmTNrlmuK0lbdlqfcOjwNqy0kFgzCERn0vLRHyw3iVnvWfNZWQ81bizFWjh/ujPUTkQ4BEUcRxpRYkgDKfb7JkZEL5uf2SUQ3g/RAzhkOiNQ4NCBJd9UALfBspdZjKZ7XSCg9BNUCKLb920Wy/8vB9v6SFMwgUrHuIWH9jY67MHjIuskDUtPpGnwR1L2yAe59wU/BWDk83QEY16uujmJ+5R0XxXXonPUq7CWX8xlQkeDdqG0ZFgIsLxMZu4bRUMlBH9mDFT/XFpnoF3LLyJ5KpZ02gBfPj9GxcJnwHmKHq88Qc8+hubMwD6LAvSfTF6WV6egwyKSFsfnFHqv3nGl7KrLX7ltXJqfJuxQ3oXkOgv4A+N4Fve5UU0p8BP+9tvBa3mXiIcmLwZ0+jB9WknClC7Irniftd8YTfTJGXo15EgHJGs+Po13faB80VgMPW7Ku5OtOV7zUqjLt4PYvQkATEpToQGsjuHzFP4Dc6UA6GlmmgiT6wmKcF/2N8hDGRnLfz2Wd4oMLt8l5Jjp3aiLmudSbshev9ExeQgUntzdhahfDYSiL83x3xCQR3tNpKirnkNCThTqMw1JKkvsLjVsvZBwbRWf 5KvG4JLmyYBfiOKImq7IWWYUQKAoNtf/Kz+jmB5mkZzM7beLIG32tccVXeewpdW2knL185J7UC9ubc9Hh2Vk0He7w9LKL4HEaE x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8abca92b-fc6e-46a5-0271-08d95da2fa54 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Aug 2021 15:08:01.5281 (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: QDO6Jzy0jo6XBl0ukZyFj/8ITJqBfMSfpP0gHF8BpJJYQznuG/jn5uyL5QD3zzFwonIoyoZZhAXC++fbz0OIdA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB2488 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=10074 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=732 mlxscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108120098 X-Proofpoint-ORIG-GUID: hY83wCQWk6m8_PuEhvYlKa3vZ0XvsPon X-Proofpoint-GUID: hY83wCQWk6m8_PuEhvYlKa3vZ0XvsPon 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:211692 Archived-At: > > Still, I would ask to have general reverse-lookup functions > > for a hash table, as well. Would someone please retitle this > > bug for that? >=20 > We have this now in the form of `map-filter' (and friends), > so I'm closing this bug report. It's fine that we have `map-filter' and friends. But that doesn't really help very directly, or in terms of discoverability. It's easy to discover `rassoc', given `assoc' (e.g., just use `apropos', or look up `assoc' in the manual, or just look up "association list"). Being able to realize this functionality "in the form of `map-filter' (& friends)" isn't so helpful. And has the _doc about hash tables_ been updated to indicate just how to do a reverse lookup? Node `Association Lists' of the Elisp manual tells you about `assoc', `rassoc', and `assq' (and more) together. Why? Because their doc belongs together. If a similar/equivalent treatment hasn't been done for hash tables - provide a direct function and fix the doc - then I don't consider this bug to have been fixed. Instead, in that case it's just another "won't fix". The aim shouldn't be to find a reason to close bug reports. The aim should be to fix bugs. If the bug was really fixed, then thanks! If not, no thanks. Saying that one can program using this, that, and the other thing (XYZ "and friends") to work around the lack of some feature is no replacement for providing that missing feature directly. `rassoc' and `rassq' have been in Lisp since about Day One. There's a reason for that.