opensubscriber
   Find in this group all groups
 
Unknown more information…

e : emacs-devel@gnu.org 9 June 2012 • 5:46PM -0400

Re: Replacement for `aput' from obsolete assoc.el?
by Andreas Schwab

REPLY TO AUTHOR
 
REPLY TO GROUP




"Stephen J. Turnbull" <stephen@xema...> writes:

> `plist-put' and `plist-get' are actually defined in C, but this shows
> how `memq' works well with plists:
>
> (defun plist-get (plist key)
>   (cadr (memq key plist)))

That fails if key is eq to a value.

Andreas.

--
Andreas Schwab, schwab@linu...
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.