# HG changeset patch # User Kim F. Storm # Date 1113902016 0 # Node ID 07fac5b8e9dcd7faf4b01273e87134a3d247ba91 # Parent d1980873b72251c036002e267117199fb9b1a02b *** empty log message *** diff -r d1980873b722 -r 07fac5b8e9dc etc/NEWS --- a/etc/NEWS Tue Apr 19 09:11:51 2005 +0000 +++ b/etc/NEWS Tue Apr 19 09:13:36 2005 +0000 @@ -4190,9 +4190,15 @@ 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 +** New function `safe-get'. + +This function is like `get', but never signals an error for +a malformed symbol property list. + ++++ +** New function `safe-plist-get'. + +This function is like `plist-get', but never signals an error for a malformed property list. +++ diff -r d1980873b722 -r 07fac5b8e9dc src/ChangeLog --- a/src/ChangeLog Tue Apr 19 09:11:51 2005 +0000 +++ b/src/ChangeLog Tue Apr 19 09:13:36 2005 +0000 @@ -1,3 +1,14 @@ +2005-04-19 Kim F. Storm + + * fns.c (Fsafe_get): New function. + (syms_of_fns): Defsubr it. + + * lisp.h (Fsafe_get): EXFUN it. + + * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay + loops in case of bad face property lists. Limit number of face + alias lookups to 10 (in case of face alias loops). + 2005-04-18 Kim F. Storm * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.