[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: plist-put: destructive?
From: |
tomas |
Subject: |
Re: plist-put: destructive? |
Date: |
Sat, 21 Jan 2017 11:25:38 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, Jan 20, 2017 at 10:25:27PM -0500, Stefan Monnier wrote:
> > So what's the ambiguity? Are there circumstances where a simple
> > plist-put isn't going to modify the original plist?
>
> Yes, when the plist is empty.
> BTW, in recent Emacsen, you can use
>
> (setf (alist-get K AL) V)
Now that's deliciously nifty :-)
Thanks for the reminder
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAliDNyIACgkQBcgs9XrR2kZ2hQCfZS84VePEE6ZIizJC4vE8ZYZh
w4IAn1pBRlrUvAOpaEmLYZNvZlgv5JAt
=qwjk
-----END PGP SIGNATURE-----