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: Dmitry Gutov
Subject: Re: How to iterate over properties in a plist?
Date: Sat, 1 Aug 2015 01:42:09 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:40.0) Gecko/20100101 Thunderbird/40.0

On 08/01/2015 01:29 AM, Marcin Borkowski wrote:

AFAIK, the "canonical" way to change a key-value pair in an
alist is to push the new one at the beginning.  In my case, the list
will grow quickly.

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



reply via email to

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