From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#25929: 25.2; map-delete doesn't delete permanently 1st alist elt Date: Thu, 02 Mar 2017 16:17:57 +0900 Message-ID: <87k288p2oq.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1488439154 7298 195.159.176.226 (2 Mar 2017 07:19:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 2 Mar 2017 07:19:14 +0000 (UTC) Cc: nicolas@petton.fr, tino.calancha@gmail.com To: 25929@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 02 08:19:10 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 1cjL10-00011e-SK for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Mar 2017 08:19:07 +0100 Original-Received: from localhost ([::1]:50791 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjL15-00020G-DX for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Mar 2017 02:19:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjL0z-00020A-Fm for bug-gnu-emacs@gnu.org; Thu, 02 Mar 2017 02:19:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjL0w-00031O-B4 for bug-gnu-emacs@gnu.org; Thu, 02 Mar 2017 02:19:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37052) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cjL0w-00031K-7I for bug-gnu-emacs@gnu.org; Thu, 02 Mar 2017 02:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cjL0v-0001XZ-RK; Thu, 02 Mar 2017 02:19:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: nicolas@petton.fr, bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Mar 2017 07:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25929 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: Original-Received: via spool by submit@debbugs.gnu.org id=B.14884390965845 (code B ref -1); Thu, 02 Mar 2017 07:19:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Mar 2017 07:18:16 +0000 Original-Received: from localhost ([127.0.0.1]:35249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjL0B-0001WB-LP for submit@debbugs.gnu.org; Thu, 02 Mar 2017 02:18:15 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40953) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjL0A-0001Vs-7O for submit@debbugs.gnu.org; Thu, 02 Mar 2017 02:18:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjL03-0002qa-TQ for submit@debbugs.gnu.org; Thu, 02 Mar 2017 02:18:08 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45495) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cjL03-0002qW-Qd for submit@debbugs.gnu.org; Thu, 02 Mar 2017 02:18:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjL02-0001yU-PD for bug-gnu-emacs@gnu.org; Thu, 02 Mar 2017 02:18:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjKzz-0002pb-K8 for bug-gnu-emacs@gnu.org; Thu, 02 Mar 2017 02:18:06 -0500 Original-Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]:34077) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cjKzz-0002pS-Dk for bug-gnu-emacs@gnu.org; Thu, 02 Mar 2017 02:18:03 -0500 Original-Received: by mail-pg0-x243.google.com with SMTP id s67so8423344pgb.1 for ; Wed, 01 Mar 2017 23:18:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version; bh=GR/Eq7bleMxpkaPJtnOHtVx4KgNhWMFHGoUGYGEB/Jo=; b=bA5j5NV8Rk5xv1lG+b+o+s4JfzAITzUTR1DyUtjUWb86cg9nTDJ4wLePF8dEWtf+lP 2AxREryDZrAEx0jAfyT7Rif5SpEOVQO+KYDJ8+OD2kAQtefwKx8uUgw2aWpu0jY2yYyi vrROVkOOoF9zYn8Va22H2XQjMDVmfwfx1n9Qs0X2h36rpo469rN0DwBQStwsuiWVyCJ7 +NssyAsMT1eSby/iXpzhhO26IzGVhXZybLD7VV1NcJuuYk5D0+SqA1nZQzvuRDNlX4nj 6NgNITuN/92Ji6S13+mAs4CdyDMuKv2WsKo/pj871T5aGQTO1an3ON4meGUYuYe3LY54 vIvA== 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:date:message-id:mime-version; bh=GR/Eq7bleMxpkaPJtnOHtVx4KgNhWMFHGoUGYGEB/Jo=; b=CCI63y1Tt2bEVXM7+S6TATWaAuobxImZbTOcIfQqCp3Q1Dgd1eU7uGgLOOTZYTLFgI TtpC8UO3xIbwJYKbfuqep8bwavbbql/d50J3rI4x4NNBLYQjVRU9GID7JFPtbCsBPlIT 7tBYXdfeFDz1jC4Imt8ouMEo794ilJMkqHSbGsXGBueRXO35jfmlhRHqmSx0vZ38QKK0 lp8xTO4DteHVVISxYL6NM0TOueAyD1Eysuq3WkuIXcHBi547LkGsz29+Y1lc/kaECRqt oJtpUsseZCjlzN6VNc7SOeVVjGw5nBk+vErMl2zRMc1konxre23+InyT1q+qLGHAex18 Qw/w== X-Gm-Message-State: AMke39npxd01HvKBbPwsmA8nySUB9EibRKOhI5xYpBbRp/7LOBN6b9sAdpVUfK1TptUdbA== X-Received: by 10.84.233.194 with SMTP id m2mr16657596pln.126.1488439082604; Wed, 01 Mar 2017 23:18:02 -0800 (PST) Original-Received: from calancha-pc (104.81.147.124.dy.bbexcite.jp. [124.147.81.104]) by smtp.gmail.com with ESMTPSA id g85sm14642738pfd.89.2017.03.01.23.18.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 Mar 2017 23:18:01 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:130032 Archived-At: X-Debbugs-CC: (cl-loop for i below 3 collect (let ((map (list (cons 0 3) (cons 1 4) (cons 2 5)))) (map-delete map i) (null (map-elt map i)))) => (nil t t) ; The first pair, i.e. '(0 . 3) is not permanently deleted. I've used the word 'permantly' because it seems it is temporary deleted: (cl-loop for i below 3 collect (let ((map (list (cons 0 3) (cons 1 4) (cons 2 5)))) (null (map-elt (map-delete map i) i)))) => (t t t) *) It happens just for alist, other maps are fine. *) The test suite doesn't detect this issue because `test-map-delete' happen to delete just the 2rd element of the maps. In GNU Emacs 25.2.3 (x86_64-pc-linux-gnu, GTK+ Version 3.22.7) of 2017-03-02 Repository revision: 640661838dbba8185990e839712c91a14641ddf3