Subject: Re: bug#12314: 24.2.50; `add-to-history': use `setq' with `delete'

From: Lars Ingebrigtsen <[email-masked]>
Date: Sat, 08 Sep 2012 18:50:40 +0200

Eli Zaretskii <[email-masked]> writes:

> Sorry, I'm not sure how this is related.  Please elaborate.

`delete' may modify the list, so other references into the list may get
surprising results after you've modified it.

The current doc string is kinda obscure, though.  It stars with

---
Delete by side effect any occurrences of ELT as a member of SEQ.
---

which is like "err".

Perhaps something like

Delete any occurrences of ELT from SEQ.  This operation may
destructively modify SEQ.  See `remove' for a non-destructive version.

would be more readable.

-- 
(domestic pets only, the antidote for overdose, milk.)
  http://lars.ingebrigtsen.no  *  Lars Magne Ingebrigtsen