diff options
| author | Eli Zaretskii | 2011-08-12 14:19:44 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2011-08-12 14:19:44 +0300 |
| commit | 08fff70c6eab76f935d6827e3fd030ec40457f1d (patch) | |
| tree | 96532d4aeaf297d62cdc264ce9a12bc6cd3908b1 /src/ChangeLog | |
| parent | 9d5cb6312b5e6ad61c7cdb5a1282d81e677899f2 (diff) | |
| download | emacs-08fff70c6eab76f935d6827e3fd030ec40457f1d.tar.gz emacs-08fff70c6eab76f935d6827e3fd030ec40457f1d.zip | |
Fix bug #9284 with line/wrap-prefix property on display strings.
src/xdisp.c (iterate_out_of_display_property): xassert that
IT->position is set to within IT->object's boundaries. Break from
the loop as soon as EOB is reached; avoids infloops in redisplay
when IT->position is set up wrongly due to some bug. Set
IT->current to match the bidi iterator unconditionally.
(push_display_prop): Allow GET_FROM_STRING as IT->method on
entry; avoids crashes when line/wrap-prefix is set on a display
string. Force push_it to save on the stack the current
buffer/string position, to be restored by pop_it. Fix flags in
the iterator structure wrt the object coming from a display
property, as `line-prefix' and `wrap-prefix' are not ``replacing''
properties.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index af9586037d7..5c65159a841 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,17 @@ | |||
| 1 | 2011-08-12 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * xdisp.c (iterate_out_of_display_property): xassert that | ||
| 4 | IT->position is set to within IT->object's boundaries. Break from | ||
| 5 | the loop as soon as EOB is reached; avoids infloops in redisplay | ||
| 6 | when IT->position is set up wrongly due to some bug. Set | ||
| 7 | IT->current to match the bidi iterator unconditionally. | ||
| 8 | (push_display_prop): Allow GET_FROM_STRING as IT->method on | ||
| 9 | entry. Force push_it to save on the stack the current | ||
| 10 | buffer/string position, to be restored by pop_it. Fix flags in | ||
| 11 | the iterator structure wrt the object coming from a display | ||
| 12 | property, as `line-prefix' and `wrap-prefix' are not ``replacing'' | ||
| 13 | properties. (Bug#9284) | ||
| 14 | |||
| 1 | 2011-08-09 Andreas Schwab <schwab@linux-m68k.org> | 15 | 2011-08-09 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 16 | ||
| 3 | * fontset.c (fontset_get_font_group): Add proper type checks. | 17 | * fontset.c (fontset_get_font_group): Add proper type checks. |