GNU bug report logs - #33998
27.0.50; cl-delete does not delete the first list element

Previous Next

Package: emacs;

Reported by: Deus Max <deusmax <at> gmx.com>

Date: Sun, 6 Jan 2019 17:48:01 UTC

Severity: minor

Tags: notabug

Found in version 27.0.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 33998 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: João Távora <joaotavora <at> gmail.com>, Deus Max
 <deusmax <at> gmx.com>
Cc: 33998 <at> debbugs.gnu.org
Subject: RE: bug#33998: 27.0.50; cl-delete does not delete the first list
 element
Date: Mon, 7 Jan 2019 09:28:54 -0800 (PST)
> So, cumbersome as it is, you should always use:
                               ^^^^^^^^^^^^^
> (setq seq (cl-delete thing seq))

FWIW, this is not really true.

`cl-delete' deletes THING from the
_value_ of SEQ.  You might or you
might not want variable SEQ to have
the updated value.  A variable and
its value are two different things.

IOW, that's one common, and important,
use case, but this is not some
always-do-this rule for users.

The manual takes pains to explain
this stuff carefully.  It's better
to just refer to the manual to help
users understand it.  (And you did
that, which is great.)




This bug report was last modified 6 years and 129 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.