[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Replacement for `aput' from obsolete assoc.el?
From: |
Thien-Thi Nguyen |
Subject: |
Re: Replacement for `aput' from obsolete assoc.el? |
Date: |
Sat, 09 Jun 2012 12:13:45 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
() Andreas Schwab <address@hidden>
() Sat, 09 Jun 2012 11:46:38 +0200
"Stephen J. Turnbull" <address@hidden> 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.
That is, a value closer to the plist head than the desired key.
(If after, no worries.)
- Replacement for `aput' from obsolete assoc.el?, Michael Heerdegen, 2012/06/04
- Re: Replacement for `aput' from obsolete assoc.el?, Christopher Schmidt, 2012/06/04
- Re: Replacement for `aput' from obsolete assoc.el?, Stefan Monnier, 2012/06/05
- Re: Replacement for `aput' from obsolete assoc.el?, Michael Heerdegen, 2012/06/05
- Re: Replacement for `aput' from obsolete assoc.el?, Stefan Monnier, 2012/06/05
- Re: Replacement for `aput' from obsolete assoc.el?, Vitalie Spinu, 2012/06/08
- Re: Replacement for `aput' from obsolete assoc.el?, Stephen J. Turnbull, 2012/06/08
- Re: Replacement for `aput' from obsolete assoc.el?, Stefan Monnier, 2012/06/08
- Re: Replacement for `aput' from obsolete assoc.el?, Stephen J. Turnbull, 2012/06/09
- Re: Replacement for `aput' from obsolete assoc.el?, Andreas Schwab, 2012/06/09
- Re: Replacement for `aput' from obsolete assoc.el?,
Thien-Thi Nguyen <=
- Re: Replacement for `aput' from obsolete assoc.el?, Stephen J. Turnbull, 2012/06/10
- RE: Replacement for `aput' from obsolete assoc.el?, Drew Adams, 2012/06/09
- RE: Replacement for `aput' from obsolete assoc.el?, Drew Adams, 2012/06/09
- Re: Replacement for `aput' from obsolete assoc.el?, Vitalie Spinu, 2012/06/09
- Re: Replacement for `aput' from obsolete assoc.el?, Stephen J. Turnbull, 2012/06/10
- RE: Replacement for `aput' from obsolete assoc.el?, Drew Adams, 2012/06/09
- Re: Replacement for `aput' from obsolete assoc.el?, Stefan Monnier, 2012/06/09
- Re: Replacement for `aput' from obsolete assoc.el?, Stephen J. Turnbull, 2012/06/10