bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Lars Ingebrigtsen
Subject: bug#12314: 24.2.50; `add-to-history': use `setq' with `delete'
Date: Sat, 08 Sep 2012 18:50:40 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]