From: Richard M. Stallman Date: Mon, 7 Jul 2003 20:40:57 +0000 (+0000) Subject: (reseat_1): Set it->area to TEXT_AREA. X-Git-Tag: ttn-vms-21-2-B4~9458 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5905025ce48d3bb727000c4a7c5221737d9f48e8;p=emacs.git (reseat_1): Set it->area to TEXT_AREA. --- diff --git a/src/xdisp.c b/src/xdisp.c index 7584d55e69f..14b5d757b02 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -4536,6 +4536,13 @@ reseat_1 (it, pos, set_stop_p) IT_STRING_BYTEPOS (*it) = -1; it->string = Qnil; it->method = next_element_from_buffer; + /* RMS: I added this to fix a bug in move_it_vertically_backward + where it->area continued to relate to the starting point + for the backward motion. Bug report from + Nick Roberts on 19 May 2003. + However, I am not sure whether reseat still does the right thing + in general after this change. */ + it->area = TEXT_AREA; it->multibyte_p = !NILP (current_buffer->enable_multibyte_characters); it->sp = 0; it->face_before_selective_p = 0;