diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xdisp.c | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 096a0eb63f2..dc8d4a38845 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 2 | |||
| 3 | * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t | ||
| 4 | around current_column call. | ||
| 5 | |||
| 1 | 2007-05-24 Chong Yidong <cyd@stupidchicken.com> | 6 | 2007-05-24 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * xdisp.c (redisplay_window): If first window line is a | 8 | * xdisp.c (redisplay_window): If first window line is a |
diff --git a/src/xdisp.c b/src/xdisp.c index a50018f1596..156dc1aec6c 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -10836,7 +10836,7 @@ redisplay_internal (preserve_echo_area) | |||
| 10836 | int must_finish = 0; | 10836 | int must_finish = 0; |
| 10837 | struct text_pos tlbufpos, tlendpos; | 10837 | struct text_pos tlbufpos, tlendpos; |
| 10838 | int number_of_visible_frames; | 10838 | int number_of_visible_frames; |
| 10839 | int count; | 10839 | int count, count1; |
| 10840 | struct frame *sf; | 10840 | struct frame *sf; |
| 10841 | int polling_stopped_here = 0; | 10841 | int polling_stopped_here = 0; |
| 10842 | 10842 | ||
| @@ -10974,6 +10974,10 @@ redisplay_internal (preserve_echo_area) | |||
| 10974 | update_mode_lines++; | 10974 | update_mode_lines++; |
| 10975 | } | 10975 | } |
| 10976 | 10976 | ||
| 10977 | /* Avoid invocation of point motion hooks by `current_column' below. */ | ||
| 10978 | count1 = SPECPDL_INDEX (); | ||
| 10979 | specbind (Qinhibit_point_motion_hooks, Qt); | ||
| 10980 | |||
| 10977 | /* If %c is in the mode line, update it if needed. */ | 10981 | /* If %c is in the mode line, update it if needed. */ |
| 10978 | if (!NILP (w->column_number_displayed) | 10982 | if (!NILP (w->column_number_displayed) |
| 10979 | /* This alternative quickly identifies a common case | 10983 | /* This alternative quickly identifies a common case |
| @@ -10985,6 +10989,8 @@ redisplay_internal (preserve_echo_area) | |||
| 10985 | != (int) current_column ())) /* iftc */ | 10989 | != (int) current_column ())) /* iftc */ |
| 10986 | w->update_mode_line = Qt; | 10990 | w->update_mode_line = Qt; |
| 10987 | 10991 | ||
| 10992 | unbind_to (count1, Qnil); | ||
| 10993 | |||
| 10988 | FRAME_SCROLL_BOTTOM_VPOS (XFRAME (w->frame)) = -1; | 10994 | FRAME_SCROLL_BOTTOM_VPOS (XFRAME (w->frame)) = -1; |
| 10989 | 10995 | ||
| 10990 | /* The variable buffer_shared is set in redisplay_window and | 10996 | /* The variable buffer_shared is set in redisplay_window and |