From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#28753: 25.3; Functions to get alist from hash table and vice versa Date: Mon, 06 Nov 2017 21:51:56 -0500 Message-ID: <87inem6bsj.fsf@users.sourceforge.net> 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> <87wp326hla.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1510023192 27100 195.159.176.226 (7 Nov 2017 02:53:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 7 Nov 2017 02:53:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: Michael Heerdegen , Nicolas Petton , 28753@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 07 03:53:08 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 1eBu0g-0006lh-6a for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Nov 2017 03:53:06 +0100 Original-Received: from localhost ([::1]:51164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBu0n-0006OY-G0 for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Nov 2017 21:53:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBu0h-0006OH-2Y for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 21:53:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBu0c-0003Gq-6k for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 21:53:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46327) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eBu0c-0003GV-1y for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 21:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eBu0b-0000H6-I1 for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 21:53:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Nov 2017 02:53: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.1510023126992 (code B ref 28753); Tue, 07 Nov 2017 02:53:01 +0000 Original-Received: (at 28753) by debbugs.gnu.org; 7 Nov 2017 02:52:06 +0000 Original-Received: from localhost ([127.0.0.1]:55008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBtzh-0000Fw-WB for submit@debbugs.gnu.org; Mon, 06 Nov 2017 21:52:06 -0500 Original-Received: from mail-it0-f44.google.com ([209.85.214.44]:44921) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBtzh-0000FS-2S for 28753@debbugs.gnu.org; Mon, 06 Nov 2017 21:52:05 -0500 Original-Received: by mail-it0-f44.google.com with SMTP id n195so5362741itg.1 for <28753@debbugs.gnu.org>; Mon, 06 Nov 2017 18:52:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=75kKUZRSMsALINmWeFp3EJDbLKdsXXaoWTEdtt77d94=; b=fjjEdp2QMw/D3shp++rFsOkJlGF/dx8x7sbgLSlDb2/jjazH8uY1WKvENOWJLv/NVQ VTWymRG5zEmH8IwsUPkirAJBDdLu78tDBNyap1nl/EvqqF8Qxf/Li+A8KZOuxPUBUW2p BMRQBpNWcXZwFom2rooERp/L41tG6Z7vNfdHC/Mtt2pTvk6WWKJo2DxT77ypnxPdjH7T g3DvsvLpzIi3wxb+NhJy+9IPpbWlgijhSFsWe1zubAos7JNg/CMzR/5wtaYInKHP4iI9 Cd9gD62vUqUf5cVp64dbRxE037ixmLex8/KzISJwDqOrlQtkXO9apSeCAEBYtIBHo3zO ld7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=75kKUZRSMsALINmWeFp3EJDbLKdsXXaoWTEdtt77d94=; b=fvFUMMXQ1ZO89D9aEf+AmdlGzdGJEK3Yx8LRAEhQUgKCM+KaNoS46/t0oc/EeTRwri VjCcnSgcJCUtq+ihqtV1VoJ8V7usS0Dq9vOcNzWCeGoLpbl3oJXocu6xa995vd5UZEXf CFb1Qf7ZXPZ3/QWwM0n3QPaRhbj/dM9S5u65dqHWEU/417I8wMuBvqYrGd3n4h1oA7Y5 4EGsYIAm0plALwrROXFB2n4JDLFV1T+vl5j/vKA5ZSTcQSHZHX+HGh2vpCLSkxBQ2A7V 7TEMydJ9Tlu/KHA3yvY47I+ktQbwT3g636wjpiaeeb0PGTWJ4+W5Hhp+Fc/QKg0QDpWS XjeA== X-Gm-Message-State: AJaThX68yUXq8ozpeAwz3Le01zL8Im7eZSnD1W8k26d+ddo2Br63VR7Z 9GegcB/csClZWOhWoZ20/Sd4dg== X-Google-Smtp-Source: ABhQp+R55YXAom4kJUOa7PaxUzp6nrDYjiic4S2Yy1TRk+TRa0t9FuQI6qBQTEFkFeqAAdFziKZV5g== X-Received: by 10.36.66.80 with SMTP id i77mr406116itb.102.1510023119206; Mon, 06 Nov 2017 18:51:59 -0800 (PST) Original-Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id e68sm7014523ite.0.2017.11.06.18.51.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Nov 2017 18:51:57 -0800 (PST) In-Reply-To: (Drew Adams's message of "Mon, 6 Nov 2017 18:24:26 -0800 (PST)") 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:139549 Archived-At: Drew Adams writes: >> Did you have any comments for my proposal in #29? > > I don't see a complete proposal there. Correct, I wanted to get comments on the whether the approach was acceptable before finishing it. > Your solution is apparently to punt, telling users to > first create the hash table they need and then call a > function that injects the alist key+value entries into > that existing table. Yes, if they want a hash table with specific parameters. > I think that's less clear than the function I provided. I think it has the advantage that the conversion function doesn't have to know about all the possible parameters involved in hash table creation. Therefore the interface is simpler. > And in particular it does not provide a USE-LAST > possibility. No, but I think it could be easily added. > You would presumably start by defining > `map--into-existing-hash-table'. (Why would that function > be "internal", BTW?) I meant it as a variant on `map--into-hash-table', so it uses the same naming convention.