aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2007-05-28 03:01:26 +0000
committerYAMAMOTO Mitsuharu2007-05-28 03:01:26 +0000
commit4bde4d4f3d859f7317ab080c9dafae56592aee06 (patch)
treed325aeb3b385bc21741e3fd1524429788c4948c4 /src
parent4a5084796e38f2634fa17e010f5a8042061d2197 (diff)
downloademacs-4bde4d4f3d859f7317ab080c9dafae56592aee06.tar.gz
emacs-4bde4d4f3d859f7317ab080c9dafae56592aee06.zip
(redisplay_internal): Bind inhibit-point-motion-hooks to t
around current_column call.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c8
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 @@
12007-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
12007-05-24 Chong Yidong <cyd@stupidchicken.com> 62007-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