From: Kim F. Storm Date: Mon, 21 Feb 2005 09:01:04 +0000 (+0000) Subject: (move_it_vertically_backward): Eliminate two xasserts. X-Git-Tag: ttn-vms-21-2-B4~2175 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d782c34829ed3aca9e4debb63b30568178407486;p=emacs.git (move_it_vertically_backward): Eliminate two xasserts. I think those asserts are bogus if buffer contains invisible text or images. --- diff --git a/src/xdisp.c b/src/xdisp.c index 85044a3713d..eb1a7d75fca 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -6318,7 +6318,11 @@ move_it_vertically_backward (it, dy) value of nlines is > 0 if continuation lines were involved. */ if (nlines > 0) move_it_by_lines (it, nlines, 1); +#if 0 + /* I think this assert is bogus if buffer contains + invisible text or images. KFS. */ xassert (IT_CHARPOS (*it) <= start_pos); +#endif } else { @@ -6367,7 +6371,11 @@ move_it_vertically_backward (it, dy) while (target_y >= line_bottom_y (it) && IT_CHARPOS (*it) < ZV); } +#if 0 + /* I think this assert is bogus if buffer contains + invisible text or images. KFS. */ xassert (IT_CHARPOS (*it) >= BEGV); +#endif } } }