diff options
| author | Dave Love | 2000-11-29 19:12:51 +0000 |
|---|---|---|
| committer | Dave Love | 2000-11-29 19:12:51 +0000 |
| commit | 4e5d744e9be8bf4d1c0b5217ebf4e51cd073db8f (patch) | |
| tree | c44ab4c09181adf3f6c3bc532043a8a040bf1067 /lispref | |
| parent | 8b5176cda8d001047cc05a5daf27291ddc3e6955 (diff) | |
| download | emacs-4e5d744e9be8bf4d1c0b5217ebf4e51cd073db8f.tar.gz emacs-4e5d744e9be8bf4d1c0b5217ebf4e51cd073db8f.zip | |
plist-member
Diffstat (limited to 'lispref')
| -rw-r--r-- | lispref/symbols.texi | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lispref/symbols.texi b/lispref/symbols.texi index 290b57269ec..14f5c088606 100644 --- a/lispref/symbols.texi +++ b/lispref/symbols.texi | |||
| @@ -521,7 +521,7 @@ The @code{put} function returns @var{value}. | |||
| 521 | @node Other Plists | 521 | @node Other Plists |
| 522 | @subsection Property Lists Outside Symbols | 522 | @subsection Property Lists Outside Symbols |
| 523 | 523 | ||
| 524 | These two functions are useful for manipulating property lists | 524 | These functions are useful for manipulating property lists |
| 525 | that are stored in places other than symbols: | 525 | that are stored in places other than symbols: |
| 526 | 526 | ||
| 527 | @defun plist-get plist property | 527 | @defun plist-get plist property |
| @@ -558,3 +558,12 @@ in the place where you got @var{plist}. For example, | |||
| 558 | (setplist symbol | 558 | (setplist symbol |
| 559 | (plist-put (symbol-plist symbol) prop value))) | 559 | (plist-put (symbol-plist symbol) prop value))) |
| 560 | @end example | 560 | @end example |
| 561 | |||
| 562 | @defun plist-member plist property | ||
| 563 | @tindex plist-member | ||
| 564 | This returns non-@code{nil} if @var{plist} contains the given | ||
| 565 | @var{property}. Unlike @code{plist-get}, this allows you to distinguish | ||
| 566 | between a missing property and a property with the value @code{nil}. | ||
| 567 | The value is actually the tail of @var{plist} whose @code{car} is | ||
| 568 | @var{property}. | ||
| 569 | @end defun | ||