diff options
| author | Kim F. Storm | 2004-11-18 11:00:38 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-11-18 11:00:38 +0000 |
| commit | b54a75394aeba1cc5fba04bdb0cd0acd0e1b309b (patch) | |
| tree | e4646cd87177f5a4d46628cf1fd4d17c723927a1 | |
| parent | ddd709d1007b3876cb7c3c70d9ac9fdb7d9f49c8 (diff) | |
| download | emacs-b54a75394aeba1cc5fba04bdb0cd0acd0e1b309b.tar.gz emacs-b54a75394aeba1cc5fba04bdb0cd0acd0e1b309b.zip | |
(Fvertical_motion): Undo 2004-11-16 change.
Instead, move back again if reseating moves too far ahead.
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/indent.c | 18 |
2 files changed, 15 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c9c4edd83fc..0efd6d5d11c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,4 +1,9 @@ | |||
| 1 | 2004-11-16 Luc Teirlinck <teirllm@auburn.edu> | 1 | 2004-11-18 Kim F. Storm <storm@cua.dk> |
| 2 | |||
| 3 | * indent.c (Fvertical_motion): Undo 2004-11-16 change. | ||
| 4 | Instead, move back again if reseating moves too far ahead. | ||
| 5 | |||
| 6 | 2004-11-17 Luc Teirlinck <teirllm@auburn.edu> | ||
| 2 | 7 | ||
| 3 | * xdisp.c (message3): Call clear_message. | 8 | * xdisp.c (message3): Call clear_message. |
| 4 | 9 | ||
diff --git a/src/indent.c b/src/indent.c index 0ece40790a7..0b73751a5f7 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -2078,16 +2078,16 @@ whether or not it is currently displayed in some window. */) | |||
| 2078 | we end up with the iterator placed at where it thinks X is 0, | 2078 | we end up with the iterator placed at where it thinks X is 0, |
| 2079 | while the end position is really at some X > 0, the same X that | 2079 | while the end position is really at some X > 0, the same X that |
| 2080 | PT had. */ | 2080 | PT had. */ |
| 2081 | if (XINT (lines) < 0) | 2081 | reseat_at_previous_visible_line_start (&it); |
| 2082 | { | 2082 | it.current_x = it.hpos = 0; |
| 2083 | reseat_at_previous_visible_line_start (&it); | 2083 | move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS); |
| 2084 | it.current_x = it.hpos = 0; | 2084 | |
| 2085 | move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS); | 2085 | /* Move back if we got too far. This may happen if |
| 2086 | it.vpos = 0; | 2086 | truncate-lines is on and PT is beyond right margin. */ |
| 2087 | } | 2087 | if (IT_CHARPOS (it) > PT && XINT (lines) > 0) |
| 2088 | else | 2088 | move_it_by_lines (&it, -1, 0); |
| 2089 | move_it_by_lines (&it, 0, 0); | ||
| 2090 | 2089 | ||
| 2090 | it.vpos = 0; | ||
| 2091 | if (XINT (lines) != 0) | 2091 | if (XINT (lines) != 0) |
| 2092 | move_it_by_lines (&it, XINT (lines), 0); | 2092 | move_it_by_lines (&it, XINT (lines), 0); |
| 2093 | 2093 | ||