Mercurial > emacs
comparison src/indent.c @ 102649:6e3d4a3b0b10
(Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Thu, 19 Mar 2009 02:58:21 +0000 |
parents | e038c1a8307c |
children | 68dd71358159 |
comparison
equal
deleted
inserted
replaced
102648:d36aefcc41ba | 102649:6e3d4a3b0b10 |
---|---|
2092 do this, we start moving with IT->current_x == 0, while PT is | 2092 do this, we start moving with IT->current_x == 0, while PT is |
2093 really at some x > 0. */ | 2093 really at some x > 0. */ |
2094 reseat_at_previous_visible_line_start (&it); | 2094 reseat_at_previous_visible_line_start (&it); |
2095 it.current_x = it.hpos = 0; | 2095 it.current_x = it.hpos = 0; |
2096 if (IT_CHARPOS (it) != PT) | 2096 if (IT_CHARPOS (it) != PT) |
2097 { | 2097 /* We used to temporarily disable selective display here; the |
2098 int oselective = it.selective; | 2098 comment said this is "so we don't move too far" (2005-01-19 |
2099 /* Temporarily disable selective display so we don't move | 2099 checkin by kfs). But this does nothing useful that I can |
2100 too far */ | 2100 tell, and it causes Bug#2694 . -- cyd */ |
2101 it.selective = 0; | 2101 move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS); |
2102 move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS); | |
2103 it.selective = oselective; | |
2104 } | |
2105 | 2102 |
2106 if (XINT (lines) <= 0) | 2103 if (XINT (lines) <= 0) |
2107 { | 2104 { |
2108 it.vpos = 0; | 2105 it.vpos = 0; |
2109 /* Do this even if LINES is 0, so that we move back to the | 2106 /* Do this even if LINES is 0, so that we move back to the |