emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lispref/symbols.texi [lexbind]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lispref/symbols.texi [lexbind]
Date: Wed, 08 Dec 2004 19:34:30 -0500

Index: emacs/lispref/symbols.texi
diff -c emacs/lispref/symbols.texi:1.17.8.5 emacs/lispref/symbols.texi:1.17.8.6
*** emacs/lispref/symbols.texi:1.17.8.5 Tue Jul  6 10:20:18 2004
--- emacs/lispref/symbols.texi  Wed Dec  8 23:31:36 2004
***************
*** 528,538 ****
  
  @defun plist-get plist property
  This returns the value of the @var{property} property
! stored in the property list @var{plist}.  For example,
  
  @example
  (plist-get '(foo 4) 'foo)
       @result{} 4
  @end example
  @end defun
  
--- 528,556 ----
  
  @defun plist-get plist property
  This returns the value of the @var{property} property
! stored in the property list @var{plist}.
! A @code{wrong-type-argument} error may be signaled if @var{plist} is
! not a valid property list.  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
+ @end defun
+ 
+ @defun safe-plist-get plist property
+ This returns the value of the @var{property} property
+ stored in the property list @var{plist}.  Unlike @code{plist-get}, 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
+ (safe-plist-get '(foo 4 bad) 'bar)
+      @result{} nil
  @end example
  @end defun
  




reply via email to

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