Fix the use case of popping from display property.
authorEli Zaretskii <eliz@gnu.org>
Sat, 2 Jul 2011 10:05:14 +0000 (13:05 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 2 Jul 2011 10:05:14 +0000 (13:05 +0300)
commita2eaa31ddf8dabc71436dcb120ad7970a40045a4
treedf11fc0eb04a1bf29f045efb190956a142b4269a
parentf3014ef5b24ac42ec714b48148b7b604b47f7468
Fix the use case of popping from display property.

 src/dispextern.h (struct iterator_stack_entry, struct it): New
 member from_disp_prop_p.
 src/xdisp.c (push_it, pop_it): Save and restore from_disp_prop_p.
 (handle_single_display_spec, push_display_prop): Set the
 from_disp_prop_p flag.
 (get_overlay_strings_1): Reset the from_disp_prop_p flag.
 (pop_it): Call iterate_out_of_display_property only if we are
 popping after iteration over a string that came from a display
 property.  Fix a typo in popping stretch info.  Add an assertion
 for verifying that the iterator position is in sync with the bidi
 iterator.
 (handle_single_display_spec, get_overlay_strings_1)
 (push_display_prop): Fix initialization of paragraph direction for
 string when that of the parent object is not yet determined.
doc/lispref/ChangeLog
doc/lispref/display.texi
src/ChangeLog
src/dispextern.h
src/xdisp.c