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

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

Re: How to iterate over properties in a plist?


From: Michael Heerdegen
Subject: Re: How to iterate over properties in a plist?
Date: Sat, 01 Aug 2015 15:34:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Dmitry Gutov <address@hidden> writes:

> (setcdr (assoc value alist) new-value) works pretty well (but you'll
> probably need to add a not-found check).

And in Emacs 25:

  (setf (alist-get key alist) new-value)

even without not-found checking.


Michael.




reply via email to

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