From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#25929: 25.2; map-delete doesn't delete permanently 1st alist elt Date: Tue, 21 Mar 2017 11:11:20 -0400 Message-ID: References: <87k288p2oq.fsf@gmail.com> <87k288kkqr.fsf@petton.fr> <87efyfluvi.fsf@petton.fr> <87a88eq2uw.fsf@petton.fr> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1490109140 6634 195.159.176.226 (21 Mar 2017 15:12:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 21 Mar 2017 15:12:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 25929@debbugs.gnu.org, Tino Calancha To: Nicolas Petton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 21 16:12:13 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 1cqLSE-0000S7-OI for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Mar 2017 16:12:10 +0100 Original-Received: from localhost ([::1]:40660 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cqLSF-0007Wp-Gk for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Mar 2017 11:12:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cqLS9-0007WX-Ka for bug-gnu-emacs@gnu.org; Tue, 21 Mar 2017 11:12:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cqLS6-00081P-C0 for bug-gnu-emacs@gnu.org; Tue, 21 Mar 2017 11:12:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39898) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cqLS6-00081K-8t for bug-gnu-emacs@gnu.org; Tue, 21 Mar 2017 11:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cqLS6-0006Yv-3b for bug-gnu-emacs@gnu.org; Tue, 21 Mar 2017 11:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Mar 2017 15:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25929 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25929-submit@debbugs.gnu.org id=B25929.149010908325184 (code B ref 25929); Tue, 21 Mar 2017 15:12:02 +0000 Original-Received: (at 25929) by debbugs.gnu.org; 21 Mar 2017 15:11:23 +0000 Original-Received: from localhost ([127.0.0.1]:38097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqLRT-0006Y8-G6 for submit@debbugs.gnu.org; Tue, 21 Mar 2017 11:11:23 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:37490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqLRS-0006Y0-E9 for 25929@debbugs.gnu.org; Tue, 21 Mar 2017 11:11:22 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id v2LFBKts024799; Tue, 21 Mar 2017 11:11:21 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 9AFAB602FE; Tue, 21 Mar 2017 11:11:20 -0400 (EDT) In-Reply-To: <87a88eq2uw.fsf@petton.fr> (Nicolas Petton's message of "Tue, 21 Mar 2017 12:35:35 +0100") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV5978=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5978> : inlines <5751> : streams <1737917> : uri <2396199> 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:130782 Archived-At: >> A better option might be to provide a map-remove which works >> functionally (i.e. doesn't modify its argument by side-effects) > I'd love to have that, but what about performance issues with > hash-tables? I was thinking of providing map-remove additionally to map-delete (and make map-delete signal an error when it can't do its job). IOW declare that some parts of the API can't be used with all types. Stefan