diff options
| author | Paul Eggert | 2011-03-06 22:26:47 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-03-06 22:26:47 -0800 |
| commit | 07b48fa9daec2894ad549f44fb468b251896d829 (patch) | |
| tree | 2cde6971d6f14a05adb8b6585cb4fa334d4b73aa /src | |
| parent | d432397227a87fd18c33a27806cd2c0fbcd203af (diff) | |
| parent | ef272f1fc10a4f8464c886ccc02ea67b2c3b2769 (diff) | |
| download | emacs-07b48fa9daec2894ad549f44fb468b251896d829.tar.gz emacs-07b48fa9daec2894ad549f44fb468b251896d829.zip | |
Merge from mainline.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 17 | ||||
| -rw-r--r-- | src/xdisp.c | 10 |
2 files changed, 16 insertions, 11 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index add827a9dc4..90722187e6c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | 2011-03-06 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-03-07 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * xmenu.c (menu_highlight_callback): Now static. | 3 | * xmenu.c (menu_highlight_callback): Now static. |
| 4 | (set_frame_menubar): Remove unused local. | 4 | (set_frame_menubar): Remove unused local. |
| @@ -12,10 +12,18 @@ | |||
| 12 | (note_mouse_highlight): Mark variables that gcc -Wuninitialized | 12 | (note_mouse_highlight): Mark variables that gcc -Wuninitialized |
| 13 | does not deduce are never used uninitialized. | 13 | does not deduce are never used uninitialized. |
| 14 | 14 | ||
| 15 | * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c | 15 | * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c. |
| 16 | which in turn is copied from coreutils. | 16 | |
| 17 | 2011-03-06 Chong Yidong <cyd@stupidchicken.com> | ||
| 18 | |||
| 19 | * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06 | ||
| 20 | change. | ||
| 17 | 21 | ||
| 18 | current_column: Now returns EMACS_INT, fixing some iftc. | 22 | 2011-03-06 Paul Eggert <eggert@cs.ucla.edu> |
| 23 | |||
| 24 | current_column: Now returns EMACS_INT, fixing some iftc | ||
| 25 | that was introduced in the 2002-06-02 change "temporarily"; see | ||
| 26 | <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>. | ||
| 19 | * bytecode.c (Fbyte_code): Don't cast current_column () to int. | 27 | * bytecode.c (Fbyte_code): Don't cast current_column () to int. |
| 20 | * cmds.c (internal_self_insert): Likewise. | 28 | * cmds.c (internal_self_insert): Likewise. |
| 21 | * indent.c (Fcurrent_column): Likewise. | 29 | * indent.c (Fcurrent_column): Likewise. |
| @@ -25,7 +33,6 @@ | |||
| 25 | to int. | 33 | to int. |
| 26 | * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec): | 34 | * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec): |
| 27 | Likewise. | 35 | Likewise. |
| 28 | |||
| 29 | * cmds.c (internal_self_insert): Declare locals to be EMACS_INT, | 36 | * cmds.c (internal_self_insert): Declare locals to be EMACS_INT, |
| 30 | not int or double, if they might contain a column number. | 37 | not int or double, if they might contain a column number. |
| 31 | * indent.c (current_column, Findent_to, indented_beyond_p): | 38 | * indent.c (current_column, Findent_to, indented_beyond_p): |
diff --git a/src/xdisp.c b/src/xdisp.c index f7f887f7850..858a0f74fb1 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; |