From unknown Tue Jun 17 20:21:06 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#30458 <30458@debbugs.gnu.org> To: bug#30458 <30458@debbugs.gnu.org> Subject: Status: hash table reverse-lookup (get-keys VALUE TABLE) => KEYS Reply-To: bug#30458 <30458@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:21:06 +0000 retitle 30458 hash table reverse-lookup (get-keys VALUE TABLE) =3D> KEYS reassign 30458 emacs submitter 30458 Drew Adams severity 30458 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 14 12:41:35 2018 Received: (at submit) by debbugs.gnu.org; 14 Feb 2018 17:41:35 +0000 Received: from localhost ([127.0.0.1]:43118 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1em13n-0002rf-6V for submit@debbugs.gnu.org; Wed, 14 Feb 2018 12:41:35 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54523) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1em13l-0002rQ-AB for submit@debbugs.gnu.org; Wed, 14 Feb 2018 12:41:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1em13f-0001Jt-7b for submit@debbugs.gnu.org; Wed, 14 Feb 2018 12:41:28 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33727) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1em13f-0001JY-3w for submit@debbugs.gnu.org; Wed, 14 Feb 2018 12:41:27 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1em13c-0001Lw-0r for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2018 12:41:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1em13Y-0001FU-SN for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2018 12:41:24 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:52484) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1em13Y-0001EU-Hq for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2018 12:41:20 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w1EHbu6g100029 for ; Wed, 14 Feb 2018 17:41:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=8wl8bc4sPHo1JIswRbQ9HVN7p4G9hvetlebwebwSN5o=; b=AcM5SSZ7Cdh4NklD74qWyp4zbQjkeHCiCGH6cObmBsbMjCBO4YXc5WmAmP0E8mqh3MmF O808kQwhGdTkBM00OUaORKB49cN2jJ7v2IajCJnP3Xu26sXxJcQ4jJaJpqkgZT+YzBy6 w6DpHUlDMttCUKMD+gVTe9Np0IXYFUajOEJpm6Ewpmm3aOZV6e/B8yRVtB6dB+yhuYhb ldXktxur8/Dbdy1e8BYJSelp0ZVSe393E4qEhfUlR1COV66JWlYyE/OKcEMd9xO2uBmy 1xYM6czG3D/TodA8IdHZnPxQQlxdH6zu5QKNMLEkRrPHf86TENV917kUjZZpzr/0X9KG BQ== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2g4pqc18j4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 14 Feb 2018 17:41:13 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w1EHfBEM009272 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 14 Feb 2018 17:41:13 GMT Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w1EHfBff029307 for ; Wed, 14 Feb 2018 17:41:11 GMT MIME-Version: 1.0 Message-ID: <35ab0734-9032-4331-90e8-825f58fba059@default> Date: Wed, 14 Feb 2018 09:41:10 -0800 (PST) From: Drew Adams To: bug-gnu-emacs@gnu.org Subject: 26.0; `ucs-names': No reverse lookup function now X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4639.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8805 signatures=668671 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 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-1711220000 definitions=main-1802140207 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Before Emacs 26, `ucs-names' was an alist. That meant that you could not only look up a character, given its name or code, but you could also easily look up a character name, given the character: (car (rassq CHARACTER (ucs-names))) How is this done now, with (ucs-names) returning a hash table? There is now a function `char-from-name', to replace the former forward alist lookup (car (assoc CHAR-NAME (ucs-names))). But there doesn't seem to be any reverse lookup now for `ucs-names' (e.g. `char-name' or `char-name-from-char'). Seems like it should be possible to have such a reverse-lookup function for any hash table (perhaps coded in C). Sure, just like an alist, a hash table can have multiple keys that have the same value. And the order in a hash table is undefined, so when there are multiple keys for the same value, a function that gives you the key when you pass it the value can only give you one of those keys. But that might be better than nothing. Another possibility would be to have a function that returns all keys that have the same value. For example, naively (with lexical-binding): (defun get-hash-keys (value hash-table &optional value-test-function) "Return a list of keys associated with VALUE in HASH-TABLE. Optional arg VALUE-TEST-FUNCTION (default `equal') is the equality predicate used to compare values." (setq value-test-function (or value-test-function #'equal)) (let ((keys ())) (maphash (lambda (key val) (when (funcall value-test-function val value) (push key keys))) hash-table) keys)) Then: (get-hash-keys (char-from-name "GREEK SMALL LETTER LAMBDA") (ucs-names)) returns ("GREEK SMALL LETTER LAMBDA" "GREEK SMALL LETTER LAMDA"). And for example: (defun get-a-hash-key (value hash-table &optional value-test-function) "Return a hash key associated with VALUE in HASH-TABLE. If there is more than one such key then it is undefined which is returned. Optional arg VALUE-TEST-FUNCTION (default `equal') is the equality predicate used to compare values." (setq value-test-function (or value-test-function #'equal)) (catch 'get-a-hash-key (maphash (lambda (key val) (when (funcall value-test-function val value) (throw 'get-a-hash-key key))) hash-table) nil)) Then: (get-a-hash-key (char-from-name "GREEK SMALL LETTER LAMBDA") (ucs-names)) returns "GREEK SMALL LETTER LAMDA" (though one would probably prefer "GREEK SMALL LETTER LAMBDA"). For the reverse-lookup functions (reverse of `char-from-name') for a character we would have: (defun char-names (character) "Return a list of the names for CHARACTER." (get-hash-keys character (ucs-names))) (defun char-name (character) "Return a name for CHARACTER, from `ucs-names'." (get-a-hash-key character (ucs-names))) Please consider adding such reverse-lookup functions for hash tables (whether using such an implementation or something else), and adding specific such functions for `ucs-names', to accompany the forward-lookup function `char-from-name'. In GNU Emacs 26.0.91 (build 1, x86_64-w64-mingw32) of 2018-01-22 Repository revision: 752fba992b793a74d202c9cfc3e1a92fd458e748 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static -g3'' From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 14 14:05:46 2018 Received: (at submit) by debbugs.gnu.org; 14 Feb 2018 19:05:46 +0000 Received: from localhost ([127.0.0.1]:43156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1em2NG-0004tB-FF for submit@debbugs.gnu.org; Wed, 14 Feb 2018 14:05:46 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1em2NF-0004sz-26 for submit@debbugs.gnu.org; Wed, 14 Feb 2018 14:05:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1em2N9-0003bk-3v for submit@debbugs.gnu.org; Wed, 14 Feb 2018 14:05:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33832) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1em2N9-0003ba-0y for submit@debbugs.gnu.org; Wed, 14 Feb 2018 14:05:39 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1em2N7-0001Br-MP for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2018 14:05:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1em2N3-0003We-PP for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2018 14:05:37 -0500 Received: from [195.159.176.226] (port=37230 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1em2N3-0003Un-Ir for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2018 14:05:33 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1em2KZ-0004Yt-4Y for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2018 20:02:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Andy Moreton Subject: Re: bug#30458: 26.0; `ucs-names': No reverse lookup function now Date: Wed, 14 Feb 2018 19:04:11 +0000 Lines: 33 Message-ID: References: <35ab0734-9032-4331-90e8-825f58fba059@default> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (windows-nt) Cancel-Lock: sha1:T81gIntaxAtW++3WXYM975yxs20= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.5 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) On Wed 14 Feb 2018, Drew Adams wrote: > Before Emacs 26, `ucs-names' was an alist. That meant that you could > not only look up a character, given its name or code, but you could also > easily look up a character name, given the character: > > (car (rassq CHARACTER (ucs-names))) > > How is this done now, with (ucs-names) returning a hash table? > > There is now a function `char-from-name', to replace the former forward > alist lookup (car (assoc CHAR-NAME (ucs-names))). But there doesn't > seem to be any reverse lookup now for `ucs-names' (e.g. `char-name' or > `char-name-from-char'). Looking at the implementation of ucs-names, does get-char-code-property do what you want ? (char-from-name "GREEK SMALL LETTER LAMBDA") => 955 (char-from-name "GREEK SMALL LETTER LAMDA") => 955 (get-char-code-property 955 'name) => "GREEK SMALL LETTER LAMDA" (get-char-code-property 955 'old-name) => "GREEK SMALL LETTER LAMBDA" HTH, AndyM From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 14 16:09:53 2018 Received: (at 30458) by debbugs.gnu.org; 14 Feb 2018 21:09:53 +0000 Received: from localhost ([127.0.0.1]:43308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1em4JN-0001ID-7n for submit@debbugs.gnu.org; Wed, 14 Feb 2018 16:09:53 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:53062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1em4JM-0001I1-23 for 30458@debbugs.gnu.org; Wed, 14 Feb 2018 16:09:52 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w1EL6lsp041505; Wed, 14 Feb 2018 21:09:43 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-2017-10-26; bh=DJTR/YwEyZ/QM0vtK3873YfImpIaEKccWNFirKYo6r4=; b=AgCdgRzoAvkGY46CeGOUwtw1YAPFtAtErYfxSlzjVriXfisXMz2E1CzLuKPqCWi3HWBO 9eXPo9v+1O4iX/usm11BvegYbn1TPYiaqVD9PltmQg23oU09rcvkQZ9oShrzdxqR1uAA U5DLF/1BahvOG8Lgi696JnTEjghn7oxVvtz+qi9Dc36wkRopwntCeeP9q1TxVMABvztu yGnU5SU0w7UN/CoFTpVhjD7KSWMPGMBRu5zu1hi8Fpebom+tf5ROBpo3Jp2fcdZx1flp I1+2KAiU5/4E7C0UiDznGUU0KwtyHyZESEEBr+5ter8z7pziI9YOmg7/gA7++NL6CJPO 7A== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2130.oracle.com with ESMTP id 2g4u870f0r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 14 Feb 2018 21:09:43 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w1EL9gFa028309 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 14 Feb 2018 21:09:42 GMT Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w1EL9gpK010154; Wed, 14 Feb 2018 21:09:42 GMT MIME-Version: 1.0 Message-ID: <18b6852e-c4c7-4fa9-ab8f-916c10d001a8@default> Date: Wed, 14 Feb 2018 13:09:41 -0800 (PST) From: Drew Adams To: Andy Moreton , 30458@debbugs.gnu.org Subject: RE: bug#30458: 26.0; `ucs-names': No reverse lookup function now References: <35ab0734-9032-4331-90e8-825f58fba059@default> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4639.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8805 signatures=668671 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=735 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1802140248 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 30458 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) > > Before Emacs 26, `ucs-names' was an alist. That meant that you could > > not only look up a character, given its name or code, but you could > > also easily look up a character name, given the character: > > > > (car (rassq CHARACTER (ucs-names))) > > > > How is this done now, with (ucs-names) returning a hash table? > > > > There is now a function `char-from-name', to replace the former forward > > alist lookup (car (assoc CHAR-NAME (ucs-names))). But there doesn't > > seem to be any reverse lookup now for `ucs-names' (e.g. `char-name' or > > `char-name-from-char'). >=20 > Looking at the implementation of ucs-names, does get-char-code-property > do what you want ? >=20 > (char-from-name "GREEK SMALL LETTER LAMBDA") =3D> 955 > (char-from-name "GREEK SMALL LETTER LAMDA") =3D> 955 > (get-char-code-property 955 'name) =3D> "GREEK SMALL LETTER LAMDA" > (get-char-code-property 955 'old-name) =3D> "GREEK SMALL LETTER LAMBDA" Yes, thanks. I had forgotten about that function. Still, I would ask to have general reverse-lookup functions for a hash table, as well. Would someone please retitle this bug for that? From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 14 21:01:17 2018 Received: (at 30458) by debbugs.gnu.org; 15 Feb 2018 02:01:17 +0000 Received: from localhost ([127.0.0.1]:43506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1em8rM-0000P9-Mu for submit@debbugs.gnu.org; Wed, 14 Feb 2018 21:01:16 -0500 Received: from mail-io0-f178.google.com ([209.85.223.178]:35100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1em8rK-0000Op-O4; Wed, 14 Feb 2018 21:01:15 -0500 Received: by mail-io0-f178.google.com with SMTP id m11so27249242iob.2; Wed, 14 Feb 2018 18:01:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=wn7LLiqgDL45kK6AtkYx4BlNM9/U2y62yA5rOFMbLes=; b=Lm4ThywyLPCKtStzeVxN8u5J1NkVtupjqsgU+Cs7X+hJs1fm7pcTgjRc4an4GW0lDy CmqNSyCIYsahYtaQ99ddnfhUMDOWUwcn0/v3aRjD2qmigFlrEWojota72kr0N9euH+bc b+4M5VaoK6vZJcmgs8S3drdqYeOOH2OUnm2EFUs/+Rfs775q9DEo7qdXJx/JSRQ9wRQH y1evK4RGnlyRt0iAuJH4+cNvHzFG3edYL9uYhA65Lz0vdGTqHtVMqg9GRLlZ+AGuJ8fG UPI+FdQ9VIgkJ9s9sVhKxrwye0G+5p0H4T4+jPFokmFmX0k42OGRLGedwFmtdtli/qGD BamQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=wn7LLiqgDL45kK6AtkYx4BlNM9/U2y62yA5rOFMbLes=; b=LMrGxaGQTtD6uoL/Z1kQMSL+vQb0XU6XFHHRb338e7SD49ulELK2STB0MnopjIUQr/ X3G98HRd0B2C5sr2IWddxuP5pOK9OiVbsKGKfwnGXCK3VFJLCOik0OWCVKeb/EpWw4VF xBRwK6EpZEkC15YtCUAMEyPDUtdvbscfypb0evfTu1/dDe34HvlkXVCnFH+YTNKIvQNp hg8kRXys+2Q/pq4xEPyFDP9rNHAgtXj6mDsAAIcjY3lqDCzPajlO705e/6tBebmx2XrF 3d5EzAuxJNwQGwAdAja6a0QKrt/uD9wlDOnlY3P6F0lsEF4d1mhXC2R2GAEueAJLTKTN lj0g== X-Gm-Message-State: APf1xPDJStVZ5K2/jGyq1cuVQelrJGc06vfmGan++Nn5tLu0vXu6lP8g SlZYcHgHn3ohhWMlEFXUzSSsRQ== X-Google-Smtp-Source: AH8x225/9AAqo/pPdD4lp2QpWAqf+nv/NEzAkv3k5H4k+1NS2QXcJJm8JcnIQ0MOOS8Y0BcspL6cuA== X-Received: by 10.107.138.35 with SMTP id m35mr1637799iod.81.1518660068964; Wed, 14 Feb 2018 18:01:08 -0800 (PST) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id g186sm14232881itg.2.2018.02.14.18.01.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Feb 2018 18:01:07 -0800 (PST) From: Noam Postavsky To: Drew Adams Subject: Re: bug#30458: 26.0; `ucs-names': No reverse lookup function now References: <35ab0734-9032-4331-90e8-825f58fba059@default> <18b6852e-c4c7-4fa9-ab8f-916c10d001a8@default> Date: Wed, 14 Feb 2018 21:01:06 -0500 In-Reply-To: <18b6852e-c4c7-4fa9-ab8f-916c10d001a8@default> (Drew Adams's message of "Wed, 14 Feb 2018 13:09:41 -0800 (PST)") Message-ID: <874lmj810d.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 30458 Cc: Andy Moreton , 30458@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) retitle 30458 hash table reverse-lookup (get-keys VALUE TABLE) => KEYS quit Drew Adams writes: > Still, I would ask to have general reverse-lookup functions > for a hash table, as well. Would someone please retitle this > bug for that? From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 12 10:41:04 2021 Received: (at 30458) by debbugs.gnu.org; 12 Aug 2021 14:41:04 +0000 Received: from localhost ([127.0.0.1]:39591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEBtD-00083b-MN for submit@debbugs.gnu.org; Thu, 12 Aug 2021 10:41:03 -0400 Received: from quimby.gnus.org ([95.216.78.240]:41612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEBt8-00083B-CU for 30458@debbugs.gnu.org; Thu, 12 Aug 2021 10:40:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=erOMyG4lLsdD1NXSm+VjeMrb4jw/ni/HFvNTI1J6apE=; b=L+dkyGAyrmfMBY17nKO6mI1nRl m+KUqfbDAnYanst3lNJ8EhCK2mKOaQGfBqlEaZaeXTJ+5BRd6dlousuGVTF5gU9dNbq0hOs0KmMbf 5wnVtKgS7DAz7OJ50BKbnrse6hEQf9v2eiEuR1kZpjK+z629Ag0JwbD56JKFkbC7z+Ho=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mEBsx-0006xj-5X; Thu, 12 Aug 2021 16:40:47 +0200 From: Lars Ingebrigtsen To: Drew Adams Subject: Re: bug#30458: hash table reverse-lookup (get-keys VALUE TABLE) => KEYS References: <35ab0734-9032-4331-90e8-825f58fba059@default> <18b6852e-c4c7-4fa9-ab8f-916c10d001a8@default> Date: Thu, 12 Aug 2021 16:40:42 +0200 In-Reply-To: <18b6852e-c4c7-4fa9-ab8f-916c10d001a8@default> (Drew Adams's message of "Wed, 14 Feb 2018 13:09:41 -0800 (PST)") Message-ID: <874kbuk9p1.fsf_-_@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Drew Adams writes: > Still, I would ask to have general reverse-lookup functions > for a hash table, as well. Would someone please retitle this > bug for that? We have this now in the form of `map-filter' (and friends), so I'm closing this bug report. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 30458 Cc: Andy Moreton , 30458@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Drew Adams writes: > Still, I would ask to have general reverse-lookup functions > for a hash table, as well. Would someone please retitle this > bug for that? We have this now in the form of `map-filter' (and friends), so I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 12 10:41:08 2021 Received: (at control) by debbugs.gnu.org; 12 Aug 2021 14:41:08 +0000 Received: from localhost ([127.0.0.1]:39594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEBtI-00084J-W3 for submit@debbugs.gnu.org; Thu, 12 Aug 2021 10:41:08 -0400 Received: from quimby.gnus.org ([95.216.78.240]:41628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEBtD-00083M-UR for control@debbugs.gnu.org; Thu, 12 Aug 2021 10:41:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ODO5mFsrUmGsLb3IKrQ0/8EL3XFEarhF6Q29bMGPtVs=; b=d45cVZY8H6q+OS8jyR6JI9k7FS 7BlNOGRQVzEDIeh0dQGQMo750a660mkk4k3Stqkz15JkfmPtyxyE+A8SYbiuCKtD4B41TOCnG8k0n ReAMujNGEr6p1i18aoBxy+mvQM2wj53/zrO7liiWX5VVq4Nd+hY9oH4xGActt0sFBw50=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mEBt6-0006xw-6Z for control@debbugs.gnu.org; Thu, 12 Aug 2021 16:40:54 +0200 Date: Thu, 12 Aug 2021 16:40:51 +0200 Message-Id: <8735rek9os.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #30458 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 30458 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 30458 quit From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 12 11:08:10 2021 Received: (at 30458) by debbugs.gnu.org; 12 Aug 2021 15:08:10 +0000 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 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 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== 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 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 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= 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 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 From: Drew Adams To: Lars Ingebrigtsen Subject: RE: [External] : Re: bug#30458: hash table reverse-lookup (get-keys VALUE TABLE) => KEYS Thread-Topic: [External] : Re: bug#30458: hash table reverse-lookup (get-keys VALUE TABLE) => KEYS Thread-Index: AQHXj4gPraHyJPpQm0SUkNfcUqfOXatv883g 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> In-Reply-To: <874kbuk9p1.fsf_-_@gnus.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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: =?us-ascii?Q?P4g9pzzRuXzQFkkIjtyvf/abs1Ycn9lshFpAA7fsJfF2PqCihOf7X3trwCjt?= =?us-ascii?Q?QOZgVswJwvOA4UxzYtg4XRNrpcacVpW8t2/fJwzQFvL+yz8kxK1VE5wcnf6L?= =?us-ascii?Q?FAvAz2kQyySMo3yGP/6PxYvO1I1eZZG98cXOV2jmTNrlmuK0lbdlqfcOjwNq?= =?us-ascii?Q?y0kFgzCERn0vLRHyw3iVnvWfNZWQ81bizFWjh/ujPUTkQ4BEUcRxpRYkgDKf?= =?us-ascii?Q?b7JkZEL5uf2SUQ3g/RAzhkOiNQ4NCBJd9UALfBspdZjKZ7XSCg9BNUCKLb92?= =?us-ascii?Q?0Wy/8vB9v6SFMwgUrHuIWH9jY67MHjIuskDUtPpGnwR1L2yAe59wU/BWDk83?= =?us-ascii?Q?QEY16uujmJ+5R0XxXXonPUq7CWX8xlQkeDdqG0ZFgIsLxMZu4bRUMlBH9mDF?= =?us-ascii?Q?T/XFpnoF3LLyJ5KpZ02gBfPj9GxcJnwHmKHq88Qc8+hubMwD6LAvSfTF6WV6?= =?us-ascii?Q?egwyKSFsfnFHqv3nGl7KrLX7ltXJqfJuxQ3oXkOgv4A+N4Fve5UU0p8BP+9t?= =?us-ascii?Q?vBa3mXiIcmLwZ0+jB9WknClC7Irniftd8YTfTJGXo15EgHJGs+Po13faB80V?= =?us-ascii?Q?gMPW7Ku5OtOV7zUqjLt4PYvQkATEpToQGsjuHzFP4Dc6UA6GlmmgiT6wmKcF?= =?us-ascii?Q?/2N8hDGRnLfz2Wd4oMLt8l5Jjp3aiLmudSbshev9ExeQgUntzdhahfDYSiL8?= =?us-ascii?Q?3x3xCQR3tNpKirnkNCThTqMw1JKkvsLjVsvZBwbRWf5KvG4JLmyYBfiOKImq?= =?us-ascii?Q?7IWWYUQKAoNtf/Kz+jmB5mkZzM7beLIG32tccVXeewpdW2knL185J7UC9ubc?= =?us-ascii?Q?9Hh2Vk0He7w9LKL4HEaEA1qYdvcb71Ex7BBjDYVM2dc4V5O8Fzzdou0mRUkN?= =?us-ascii?Q?Wx+92shzsEpSBy9UO0i8FfYIEWiqzsYOQLaVBErgEXqx5UqTUGu9CPi2E4wD?= =?us-ascii?Q?664NHbspQyGVENkqelYMuKFgOXCpygOQPgymOOeMOpW7BxRTSwxY9GMwu9wV?= =?us-ascii?Q?glfEsDwrihbKK4CMyqEsVfmQgKWgqy8E06cr2445fqWYQXcEDuBkrWbX0es1?= =?us-ascii?Q?ulrmquJ8LhRB2z1xHYv4z7y/HF9BY28RE9P8ubCQO/6pYrsFssyKpI4l0i0Z?= =?us-ascii?Q?aOjX/oaNrypoxfSRe/LPQI14Xu+4T8RcV+14r3oMBLC4587IeHGLpsL88MVC?= =?us-ascii?Q?zm6aTaQMLyXSanUTPLGbJD36pPD9oyB41nq8xCRoJ+2aoEn2KEiJzIQubRzq?= =?us-ascii?Q?pnPOJN6sbWfqwQQLkp7FeOQUoyXyeIdaK0y+StGqfINYg4C+iyOXP/491n2l?= =?us-ascii?Q?1B8=3D?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 30458 Cc: Andy Moreton , "30458@debbugs.gnu.org" <30458@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) > > 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. From unknown Tue Jun 17 20:21:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 10 Sep 2021 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator