X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/139c502d64390a25e52879048983f1f67bbeae18..a72c2d97a8df00371150fe9d3dffd84559fd0479:/lispref/symbols.texi diff --git a/lispref/symbols.texi b/lispref/symbols.texi index 632f2cc517..9f59ad1f02 100644 --- a/lispref/symbols.texi +++ b/lispref/symbols.texi @@ -1,6 +1,6 @@ @c -*-texinfo-*- @c This is part of the GNU Emacs Lisp Reference Manual. -@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999 +@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2003 @c Free Software Foundation, Inc. @c See the file elisp.texi for copying conditions. @setfilename ../info/symbols @@ -115,10 +115,10 @@ the four cells of the symbol @code{buffer-file-name}: @result{} "buffer-file-name" (symbol-value 'buffer-file-name) @result{} "/gnu/elisp/symbols.texi" -(symbol-plist 'buffer-file-name) - @result{} (variable-documentation 29529) (symbol-function 'buffer-file-name) @result{} # +(symbol-plist 'buffer-file-name) + @result{} (variable-documentation 29529) @end example @noindent @@ -360,8 +360,8 @@ This variable is the standard obarray for use by @code{intern} and @code{read}. @end defvar -@anchor{Definition of mapatoms} @defun mapatoms function &optional obarray +@anchor{Definition of mapatoms} This function calls @var{function} once with each symbol in the obarray @var{obarray}. Then it returns @code{nil}. If @var{obarray} is omitted, it defaults to the value of @code{obarray}, the standard @@ -533,6 +533,18 @@ stored in the property list @var{plist}. For example, @example (plist-get '(foo 4) 'foo) @result{} 4 +(plist-get '(foo 4 bad) 'foo) + @result{} 4 +(plist-get '(foo 4 bad) 'bar) + @result{} @code{wrong-type-argument} error +@end example + +It accepts a malformed @var{plist} argument and always returns @code{nil} +if @var{property} is not found in the @var{plist}. For example, + +@example +(plist-get '(foo 4 bad) 'bar) + @result{} nil @end example @end defun