diff options
| author | Eli Zaretskii | 2011-10-17 19:03:20 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2011-10-17 19:03:20 +0200 |
| commit | 2c91f553b734ed0e2c624e39710385fe5237ff96 (patch) | |
| tree | cbbfd545e17613b23c0b0f03361787c7c3db825a /src | |
| parent | 5a7c536b92fce432805058af38a88879edd896e5 (diff) | |
| download | emacs-2c91f553b734ed0e2c624e39710385fe5237ff96.tar.gz emacs-2c91f553b734ed0e2c624e39710385fe5237ff96.zip | |
Fix part 4 of bug#9771 with assertion violation when wrap-prefix is used
for a line that begins with control characters.
src/xdisp.c (push_display_prop): Determine whether to record string
or buffer position by IT->string, not by IT->method. Allow
GET_FROM_DISPLAY_VECTOR as IT->method on entry.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/xdisp.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2c72e97b7f7..53e67a30c38 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-10-17 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * xdisp.c (push_display_prop): Determine whether to record string | ||
| 4 | or buffer position by IT->string, not by IT->method. Allow | ||
| 5 | GET_FROM_DISPLAY_VECTOR as IT->method on entry. (Bug#9771, part 4) | ||
| 6 | |||
| 1 | 2011-10-15 Martin Rudalics <rudalics@gmx.at> | 7 | 2011-10-15 Martin Rudalics <rudalics@gmx.at> |
| 2 | 8 | ||
| 3 | * window.c (coordinates_in_window): Rewrite and delabelize | 9 | * window.c (coordinates_in_window): Rewrite and delabelize |
diff --git a/src/xdisp.c b/src/xdisp.c index 13bb0f79e18..e796eb98f19 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -18427,9 +18427,10 @@ static int | |||
| 18427 | push_display_prop (struct it *it, Lisp_Object prop) | 18427 | push_display_prop (struct it *it, Lisp_Object prop) |
| 18428 | { | 18428 | { |
| 18429 | struct text_pos pos = | 18429 | struct text_pos pos = |
| 18430 | (it->method == GET_FROM_STRING) ? it->current.string_pos : it->current.pos; | 18430 | STRINGP (it->string) ? it->current.string_pos : it->current.pos; |
| 18431 | 18431 | ||
| 18432 | xassert (it->method == GET_FROM_BUFFER | 18432 | xassert (it->method == GET_FROM_BUFFER |
| 18433 | || it->method == GET_FROM_DISPLAY_VECTOR | ||
| 18433 | || it->method == GET_FROM_STRING); | 18434 | || it->method == GET_FROM_STRING); |
| 18434 | 18435 | ||
| 18435 | /* We need to save the current buffer/string position, so it will be | 18436 | /* We need to save the current buffer/string position, so it will be |