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

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

Re: How to find a key in a property list?


From: Kalle Olavi Niemitalo
Subject: Re: How to find a key in a property list?
Date: 22 Mar 2001 12:38:51 +0200

Hannu Koivisto <azure@iki.fi> writes:

> While I, as a quite pedantic person :), might also try to optimize
> such consing away, does it really matter for you?

Absolutely not.  :-)

> (defun has-property-p (sym property)
>   (loop for prop in (symbol-plist sym) by #'cddr
>         when (eq prop property)
>           return t))

Thanks!

BTW, how can I make TAB indent that return clause properly?



reply via email to

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