From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#28753: 25.3; Functions to get alist from hash table and vice versa Date: Mon, 6 Nov 2017 08:19:16 -0800 (PST) Message-ID: References: <54ecd1bb-0c84-4b0a-b19e-3a89cbe832bc@default> <87r2uce9u8.fsf@web.de> <3da0f75d-6000-410d-9e0b-ea293677b5ed@default> <87wp4038m0.fsf@web.de> <87r2u8sdh5.fsf@petton.fr> <52a5f9a9-2fd9-49a6-9dd1-849f3c18b519@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1509985821 26834 195.159.176.226 (6 Nov 2017 16:30:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Nov 2017 16:30:21 +0000 (UTC) Cc: 28753@debbugs.gnu.org To: Nicolas Petton , Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 06 17:30:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBkHr-0006gK-Pf for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Nov 2017 17:30:11 +0100 Original-Received: from localhost ([::1]:49047 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBkHz-00008T-73 for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Nov 2017 11:30:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBk86-0000LQ-6N for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 11:20:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBk82-0000jW-5E for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 11:20:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45746) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eBk82-0000jN-1D for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 11:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eBk81-0002b5-Na for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 11:20:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Nov 2017 16:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28753 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28753-submit@debbugs.gnu.org id=B28753.15099851719940 (code B ref 28753); Mon, 06 Nov 2017 16:20:01 +0000 Original-Received: (at 28753) by debbugs.gnu.org; 6 Nov 2017 16:19:31 +0000 Original-Received: from localhost ([127.0.0.1]:54427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBk7X-0002aG-4H for submit@debbugs.gnu.org; Mon, 06 Nov 2017 11:19:31 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:26812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBk7U-0002Zy-9v for 28753@debbugs.gnu.org; Mon, 06 Nov 2017 11:19:29 -0500 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vA6GJKBX000458 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 6 Nov 2017 16:19:21 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vA6GJJQh005510 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 6 Nov 2017 16:19:19 GMT Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id vA6GJImw003135; Mon, 6 Nov 2017 16:19:18 GMT In-Reply-To: <52a5f9a9-2fd9-49a6-9dd1-849f3c18b519@default> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4600.0 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] 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: 208.118.235.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:139508 Archived-At: > It's great to have abstract, general-purpose > functions that handle maps, sequences, streams, > etc. But not all such things are handled the > same way in Lisp code. An alist is itself quite > general, so it can be and is used in different > ways in different programs. There is no single, > simple mapping from an arbitrary alist to a hash > table, I think. >=20 > We can provide a general-purpose function that > chooses just one kind of mapping from an alist > to, e.g., a hash table. But I'm guessing that we > should also provide a function that gives you more > control over the conversion mapping. IOW, maybe > both a `map-into' kind of general-purpose behavior > and a more specific `alist-to-hash-table' kind of > behavior. >=20 > (But for the time being, `map-into' is only for > list <-> hash table, so for the time being it > seems less useful than the more specific > function.) Any news on this? There is no general, abstract solution proposed, so far, to meet the needs met by the specific alist <-> hash-table code I sent. Should we not add that code or similar to Emacs?