GNU bug report logs - #25929
25.2; map-delete doesn't delete permanently 1st alist elt

Previous Next

Package: emacs;

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 #100 received at 25929 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: "rms <at> gnu.org" <rms <at> gnu.org>, Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: "25929 <at> debbugs.gnu.org" <25929 <at> debbugs.gnu.org>,
 "nicolas <at> petton.fr" <nicolas <at> petton.fr>,
 "tino.calancha <at> gmail.com" <tino.calancha <at> gmail.com>
Subject: RE: [External] : bug#25929: 25.2; map-delete doesn't delete
 permanently 1st alist elt
Date: Thu, 28 Apr 2022 16:00:23 +0000
> It is a natural consequence of list structure that 
> deleting the first element doesn't do it destructively,
> so you need to do (setq foo (delq elt foo))
> 
> This is a general principal of deletion in Lisp, so
> let's teach it to people rather than trying to help
> people avoid the need to learn it.

+1.

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.