GNU bug report logs -
#25929
25.2; map-delete doesn't delete permanently 1st alist elt
Previous Next
Reported by: Tino Calancha <tino.calancha <at> gmail.com>
Date: Thu, 2 Mar 2017 07:19:01 UTC
Severity: normal
Found in version 25.2
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
X-Debbugs-CC: <nicolas <at> petton.fr>
(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
This bug report was last modified 3 years and 27 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.