# HG changeset patch # User Gerd Moellmann # Date 957383315 0 # Node ID ddc6811eb4c810055ac7e7db9fcf3137da1adcd1 # Parent 80075cf72edeb1849a98720a4545bf3bcfdc8fd7 (handle_single_display_prop): If display property value is invalid, or something not supported on the frame, restore iterator's position to what it was initially. Make sure to return 0 for invalid and unsupported property values. diff -r 80075cf72ede -r ddc6811eb4c8 src/xdisp.c --- a/src/xdisp.c Wed May 03 19:25:07 2000 +0000 +++ b/src/xdisp.c Wed May 03 19:48:35 2000 +0000 @@ -2439,7 +2439,6 @@ /* Characters having this form of property are not displayed, so we have to find the end of the property. */ - space_or_image_found_p = 1; start_pos = *position; *position = display_prop_end (it, object, start_pos); value = Qnil; @@ -2489,6 +2488,8 @@ || NILP (location)) && valid_p) { + space_or_image_found_p = 1; + /* Save current settings of IT so that we can restore them when we are finished with the glyph property value. */ push_it (it); @@ -2534,6 +2535,10 @@ } #endif /* HAVE_WINDOW_SYSTEM */ } + else + /* Invalid property or property not supported. Restore + the position to what it was before. */ + *position = start_pos; } return space_or_image_found_p;