# HG changeset patch # User Kim F. Storm # Date 1100532033 0 # Node ID f02cbb3be7fac3750552f9903adb00e8b7f9b6d9 # Parent ff6fd8552b2fd8cac350eedba074c320568ae3b9 *** empty log message *** diff -r ff6fd8552b2f -r f02cbb3be7fa etc/NEWS --- a/etc/NEWS Mon Nov 15 15:19:48 2004 +0000 +++ b/etc/NEWS Mon Nov 15 15:20:33 2004 +0000 @@ -3640,6 +3640,12 @@ specified) window as a string with or without text properties. +++ +** New function safe-plist-get. + +This function is like plist-get, but never signals an error for +a malformed property list. + ++++ ** New functions `lax-plist-get' and `lax-plist-put'. These functions are like `plist-get' and `plist-put' except that they diff -r ff6fd8552b2f -r f02cbb3be7fa lispref/ChangeLog --- a/lispref/ChangeLog Mon Nov 15 15:19:48 2004 +0000 +++ b/lispref/ChangeLog Mon Nov 15 15:20:33 2004 +0000 @@ -1,6 +1,7 @@ 2004-11-15 Kim F. Storm - * symbols.texi (Other Plists): Add safe-plist-get. + * symbols.texi (Other Plists): Note that plist-get may signal error. + Add safe-plist-get. 2004-11-15 Thien-Thi Nguyen diff -r ff6fd8552b2f -r f02cbb3be7fa src/ChangeLog --- a/src/ChangeLog Mon Nov 15 15:19:48 2004 +0000 +++ b/src/ChangeLog Mon Nov 15 15:20:33 2004 +0000 @@ -1,3 +1,15 @@ +2004-11-15 Kim F. Storm + + * fns.c (Fsafe_plist_get): New defun. + (syms_of_fns): Defsubr it. + + * lisp.h (Fsafe_plist_get): Add EXFUN. + + * xdisp.c (store_mode_line_string, produce_stretch_glyph): + Use Fsafe_plist_get. + (note_mode_line_or_margin_highlight, note_mouse_highlight): + Fix image map element parsing. Use Fsafe_plist_get. + 2004-11-15 Richard M. Stallman * xdisp.c (get_next_display_element): Fix previous change.