diff options
| author | Chong Yidong | 2011-03-06 18:19:25 -0500 |
|---|---|---|
| committer | Chong Yidong | 2011-03-06 18:19:25 -0500 |
| commit | ef272f1fc10a4f8464c886ccc02ea67b2c3b2769 (patch) | |
| tree | fb39b8033829ddf056cbfa274ecd92a379d7f83c /src | |
| parent | 0b3cecebd530db6eab09aa3338eafc97b03446ff (diff) | |
| download | emacs-ef272f1fc10a4f8464c886ccc02ea67b2c3b2769.tar.gz emacs-ef272f1fc10a4f8464c886ccc02ea67b2c3b2769.zip | |
Revert incorrect logic in 2011-03-06T07:50:01Z!eggert@cs.ucla.edu.
* src/xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06 change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xdisp.c | 10 |
2 files changed, 9 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a96edcdfdca..d7131096995 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-03-06 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06 | ||
| 4 | change. | ||
| 5 | |||
| 1 | 2011-03-06 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2011-03-06 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | current_column: Now returns EMACS_INT, fixing some iftc | 8 | current_column: Now returns EMACS_INT, fixing some iftc |
diff --git a/src/xdisp.c b/src/xdisp.c index 44cb7130119..e62b491ad32 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -13697,6 +13697,7 @@ redisplay_window (Lisp_Object window, int just_this_one_p) | |||
| 13697 | int buffer_unchanged_p = 0; | 13697 | int buffer_unchanged_p = 0; |
| 13698 | int temp_scroll_step = 0; | 13698 | int temp_scroll_step = 0; |
| 13699 | int count = SPECPDL_INDEX (); | 13699 | int count = SPECPDL_INDEX (); |
| 13700 | int rc; | ||
| 13700 | int centering_position = -1; | 13701 | int centering_position = -1; |
| 13701 | int last_line_misfit = 0; | 13702 | int last_line_misfit = 0; |
| 13702 | EMACS_INT beg_unchanged, end_unchanged; | 13703 | EMACS_INT beg_unchanged, end_unchanged; |
| @@ -14008,15 +14009,12 @@ redisplay_window (Lisp_Object window, int just_this_one_p) | |||
| 14008 | /* Handle case where text has not changed, only point, and it has | 14009 | /* Handle case where text has not changed, only point, and it has |
| 14009 | not moved off the frame, and we are not retrying after hscroll. | 14010 | not moved off the frame, and we are not retrying after hscroll. |
| 14010 | (current_matrix_up_to_date_p is nonzero when retrying.) */ | 14011 | (current_matrix_up_to_date_p is nonzero when retrying.) */ |
| 14011 | if (current_matrix_up_to_date_p) | 14012 | if (current_matrix_up_to_date_p |
| 14013 | && (rc = try_cursor_movement (window, startp, &temp_scroll_step), | ||
| 14014 | rc != CURSOR_MOVEMENT_CANNOT_BE_USED)) | ||
| 14012 | { | 14015 | { |
| 14013 | int rc = try_cursor_movement (window, startp, &temp_scroll_step); | ||
| 14014 | |||
| 14015 | switch (rc) | 14016 | switch (rc) |
| 14016 | { | 14017 | { |
| 14017 | case CURSOR_MOVEMENT_CANNOT_BE_USED: | ||
| 14018 | break; | ||
| 14019 | |||
| 14020 | case CURSOR_MOVEMENT_SUCCESS: | 14018 | case CURSOR_MOVEMENT_SUCCESS: |
| 14021 | used_current_matrix_p = 1; | 14019 | used_current_matrix_p = 1; |
| 14022 | goto done; | 14020 | goto done; |