diff options
| author | Eli Zaretskii | 2011-11-22 20:00:38 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2011-11-22 20:00:38 +0200 |
| commit | b12cd789373d12a8d1b898efa023e7e1b83d0405 (patch) | |
| tree | 47754eb3928a1d558db65dce8349eeef3da3664f /src | |
| parent | 28109f49967302bec7f1a96e8460c75244f55419 (diff) | |
| download | emacs-b12cd789373d12a8d1b898efa023e7e1b83d0405.tar.gz emacs-b12cd789373d12a8d1b898efa023e7e1b83d0405.zip | |
Fix bug #10098 with assertion violation during frame resize.
src/dispnew.c (adjust_glyph_matrix): Don't verify hash code of mode-
and header-lines, as they don't have one computed for them.
src/.gdbinit (prow): Make displayed values more self-explaining.
Add row's hash code.
Diffstat (limited to 'src')
| -rw-r--r-- | src/.gdbinit | 5 | ||||
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/dispnew.c | 4 |
3 files changed, 14 insertions, 4 deletions
diff --git a/src/.gdbinit b/src/.gdbinit index 80415abe40d..2051475bea0 100644 --- a/src/.gdbinit +++ b/src/.gdbinit | |||
| @@ -311,9 +311,8 @@ define prowx | |||
| 311 | printf "y=%d x=%d pwid=%d", $row->y, $row->x, $row->pixel_width | 311 | printf "y=%d x=%d pwid=%d", $row->y, $row->x, $row->pixel_width |
| 312 | printf " a+d=%d+%d=%d", $row->ascent, $row->height-$row->ascent, $row->height | 312 | printf " a+d=%d+%d=%d", $row->ascent, $row->height-$row->ascent, $row->height |
| 313 | printf " phys=%d+%d=%d", $row->phys_ascent, $row->phys_height-$row->phys_ascent, $row->phys_height | 313 | printf " phys=%d+%d=%d", $row->phys_ascent, $row->phys_height-$row->phys_ascent, $row->phys_height |
| 314 | printf " vis=%d", $row->visible_height | 314 | printf " vis=%d\n", $row->visible_height |
| 315 | printf " L=%d T=%d R=%d", $row->used[0], $row->used[1], $row->used[2] | 315 | printf "used=(LMargin=%d,Text=%d,RMargin=%d) Hash=%d\n", $row->used[0], $row->used[1], $row->used[2], $row->hash |
| 316 | printf "\n" | ||
| 317 | printf "start=%d end=%d", $row->start.pos.charpos, $row->end.pos.charpos | 316 | printf "start=%d end=%d", $row->start.pos.charpos, $row->end.pos.charpos |
| 318 | if ($row->enabled_p) | 317 | if ($row->enabled_p) |
| 319 | printf " ENA" | 318 | printf " ENA" |
diff --git a/src/ChangeLog b/src/ChangeLog index a0f83560603..51fa3b65be1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2011-11-22 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * dispnew.c (adjust_glyph_matrix): Don't verify hash code of mode- | ||
| 4 | and header-lines, as they don't have one computed for them. | ||
| 5 | (Bug#10098) | ||
| 6 | |||
| 7 | * .gdbinit (prow): Make displayed values more self-explaining. | ||
| 8 | Add row's hash code. | ||
| 9 | |||
| 1 | 2011-11-21 Lars Magne Ingebrigtsen <larsi@gnus.org> | 10 | 2011-11-21 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 11 | ||
| 3 | * process.c (wait_reading_process_output): Fix asynchrounous | 12 | * process.c (wait_reading_process_output): Fix asynchrounous |
diff --git a/src/dispnew.c b/src/dispnew.c index d6bf6666ee2..8abf5782a88 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -608,7 +608,9 @@ adjust_glyph_matrix (struct window *w, struct glyph_matrix *matrix, int x, int y | |||
| 608 | row->glyphs[LAST_AREA] | 608 | row->glyphs[LAST_AREA] |
| 609 | = row->glyphs[LEFT_MARGIN_AREA] + dim.width; | 609 | = row->glyphs[LEFT_MARGIN_AREA] + dim.width; |
| 610 | } | 610 | } |
| 611 | xassert (!row->enabled_p || verify_row_hash (row)); | 611 | xassert (!row->enabled_p |
| 612 | || row->mode_line_p | ||
| 613 | || verify_row_hash (row)); | ||
| 612 | ++row; | 614 | ++row; |
| 613 | } | 615 | } |
| 614 | } | 616 | } |