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#25929: 25.2; map-delete doesn't delete permanently 1st alist elt Date: Wed, 22 Mar 2017 08:56:18 -0400 Message-ID: References: <87k288p2oq.fsf@gmail.com> <87k288kkqr.fsf@petton.fr> <87efyfluvi.fsf@petton.fr> <87efydlxfh.fsf@drachen> <878tnxa5l4.fsf@drachen> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1490187452 22436 195.159.176.226 (22 Mar 2017 12:57:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 22 Mar 2017 12:57:32 +0000 (UTC) Cc: Michael Heerdegen , 25929@debbugs.gnu.org, Nicolas Petton , Stefan Monnier , Tino Calancha To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 22 13:57:28 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 1cqfpO-0005GY-LP for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Mar 2017 13:57:26 +0100 Original-Received: from localhost ([::1]:50916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cqfpU-0004Cb-N8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Mar 2017 08:57:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cqfp4-0003ws-Kl for bug-gnu-emacs@gnu.org; Wed, 22 Mar 2017 08:57:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cqfp0-00064E-L6 for bug-gnu-emacs@gnu.org; Wed, 22 Mar 2017 08:57:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40569) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cqfp0-00064A-IF for bug-gnu-emacs@gnu.org; Wed, 22 Mar 2017 08:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cqfp0-0006dZ-CJ for bug-gnu-emacs@gnu.org; Wed, 22 Mar 2017 08:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Mar 2017 12:57: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.149018739425471 (code B ref 25929); Wed, 22 Mar 2017 12:57:02 +0000 Original-Received: (at 25929) by debbugs.gnu.org; 22 Mar 2017 12:56:34 +0000 Original-Received: from localhost ([127.0.0.1]:38767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqfoU-0006ch-IN for submit@debbugs.gnu.org; Wed, 22 Mar 2017 08:56:34 -0400 Original-Received: from mail-ot0-f170.google.com ([74.125.82.170]:33929) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqfoO-0006cQ-Ja for 25929@debbugs.gnu.org; Wed, 22 Mar 2017 08:56:28 -0400 Original-Received: by mail-ot0-f170.google.com with SMTP id o24so168639569otb.1 for <25929@debbugs.gnu.org>; Wed, 22 Mar 2017 05:56:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=kJZLlwSHAZbMNjK64aa5GWRJWaN/+EkZi279ifYHJOI=; b=dLzm38AwPS/6VnZnewozkwRyRnJCQ3Itmsh7tZkEMcu4tzefkuh8idAQ6fzbI17rJy e5mtR0YPA6bZtlN5jB1ALtHEAWJFl2nlw2V8LSgwUuPbXgJGiCPQxlOr76M8EiWBzT65 QKXhRTQ2YJ6linrcnobcc6cvvjTiyMuvw2RdPPNBypSAaulvQZ95C2ziffFABlNmF0MV c2/kqp4Ij58EY0Q8W5Op6cgzXCivNf7L1eHoqyoGwgBYXbp3k93ToKUZ3bi4ZNwD2ui4 NAj4Fm0l+m8mzKUk2cbBXIfzRmaPx4B0M5Qc48p6mLJCmujOaZ17UNtOtT3Z9r6p/HNX DsIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=kJZLlwSHAZbMNjK64aa5GWRJWaN/+EkZi279ifYHJOI=; b=OoJG/r6SAOmHV/Pln6S3D7D0TYnKRVSKTF9pvZK11UT0aE38kemE/hs9V6TGNuxIes 79uxwgPJDfWG1DoSQDUy0EB4mhixQ3jqNs1YVMxgjj/n/bL9YppDYABWNwQq98hIq8af fSDJe+EyLL0EU/OkvSTxZQFyLObkGFHUo2RdZBKS8++28d1AKMD/s8VZOczxRX4hEJHj OZ+2ZonxesHCa4m0er57imNr+JULfyHCIKRjTWzvZshPOwaAHHwhrEIwhJa6Sw19fi0J Sh2v0euJo0s805hVxvo6SEpTjyCE5o+tktAG5bmP0XjoMzGpjEB7rnb3oImpN6yXyQLM XL5Q== X-Gm-Message-State: AFeK/H38wWqDpF5ABEorTFYSwO+Nu1Vldp43cum7uiLZsf/XNiUn9ExCSTjIZi6XMJca+NKKpd7MRBSJ49WIOA== X-Received: by 10.157.68.173 with SMTP id v45mr3303663ote.55.1490187378974; Wed, 22 Mar 2017 05:56:18 -0700 (PDT) Original-Received: by 10.157.80.172 with HTTP; Wed, 22 Mar 2017 05:56:18 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: nR1N_t-WcReG8QJp3Jp4TFBnurg 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:130801 Archived-At: On Wed, Mar 22, 2017 at 8:01 AM, Lars Ingebrigtsen wrote: > Michael Heerdegen writes: > >> That's a relatively small gain, and some people might prefer the >> explicit form (2) for readability. > > If we don't do this, (map-delete foo 'bar) has surprising effects in > this one corner case. > > That is, if foo is a hash table, then it's fine to say > (map-delete foo 'bar). If you change foo to be an alist, you then have > to transform all the calls to be (setq foo (map-delete foo 'bar)) > instead, It's also fine to say (setq foo (map-delete foo 'bar)) if foo is hash table, right?