changeset 34014:4d3831f2899f

plist-member
author Dave Love <fx@gnu.org>
date Wed, 29 Nov 2000 19:12:51 +0000
parents 4a60e687c9ab
children e998ea898e46
files lispref/symbols.texi
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/symbols.texi	Wed Nov 29 18:47:42 2000 +0000
+++ b/lispref/symbols.texi	Wed Nov 29 19:12:51 2000 +0000
@@ -521,7 +521,7 @@
 @node Other Plists
 @subsection Property Lists Outside Symbols
 
-  These two functions are useful for manipulating property lists
+  These functions are useful for manipulating property lists
 that are stored in places other than symbols:
 
 @defun plist-get plist property
@@ -558,3 +558,12 @@
   (setplist symbol
             (plist-put (symbol-plist symbol) prop value)))
 @end example
+
+@defun plist-member plist property
+@tindex plist-member
+This returns non-@code{nil} if @var{plist} contains the given
+@var{property}.  Unlike @code{plist-get}, this allows you to distinguish
+between a missing property and a property with the value @code{nil}.
+The value is actually the tail of @var{plist} whose @code{car} is
+@var{property}.
+@end defun