aboutsummaryrefslogtreecommitdiffstats
path: root/src/xdisp.c
diff options
context:
space:
mode:
authorMiles Bader <[email protected]>2007-05-30 14:44:47 +0000
committerMiles Bader <[email protected]>2007-05-30 14:44:47 +0000
commit34c6724464237db4bfd5b3fa57e8b0f66a92f618 (patch)
treebbfe4aea433c943f0f6a67b3e49ee31647e12d92 /src/xdisp.c
parent30790a37efea5c6fed87ee0dd0d54c31ac9eea11 (diff)
parent7a781a5480b9a1f55d28a76e1d1f89aaa2421f97 (diff)
Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 771-780) - Update from CVS - Merge from emacs--rel--22 - Merge from emacs--rel--22, gnus--rel--5.10 - Fix tq.el edge case * emacs--rel--22 (patch 26-32) - Update from CVS - lisp/vc-hooks.el (vc-find-root): Fix file attribute test * gnus--rel--5.10 (patch 224-225) - Merge from emacs--devo--0, emacs--rel--22 - Update from CVS Revision: [email protected]/emacs--multi-tty--0--patch-18
Diffstat (limited to 'src/xdisp.c')
-rw-r--r--src/xdisp.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 8459be7abb..268f1ec8b8 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -6256,7 +6256,7 @@ next_element_from_buffer (it)
it->c = *p, it->len = 1;
/* Record what we have and where it came from. */
- it->what = IT_CHARACTER;;
+ it->what = IT_CHARACTER;
it->object = it->w->buffer;
it->position = it->current.pos;
@@ -10840,7 +10840,7 @@ redisplay_internal (preserve_echo_area)
int must_finish = 0;
struct text_pos tlbufpos, tlendpos;
int number_of_visible_frames;
- int count;
+ int count, count1;
struct frame *sf;
int polling_stopped_here = 0;
@@ -10978,6 +10978,10 @@ redisplay_internal (preserve_echo_area)
update_mode_lines++;
}
+ /* Avoid invocation of point motion hooks by `current_column' below. */
+ count1 = SPECPDL_INDEX ();
+ specbind (Qinhibit_point_motion_hooks, Qt);
+
/* If %c is in the mode line, update it if needed. */
if (!NILP (w->column_number_displayed)
/* This alternative quickly identifies a common case
@@ -10989,6 +10993,8 @@ redisplay_internal (preserve_echo_area)
!= (int) current_column ())) /* iftc */
w->update_mode_line = Qt;
+ unbind_to (count1, Qnil);
+
FRAME_SCROLL_BOTTOM_VPOS (XFRAME (w->frame)) = -1;
/* The variable buffer_shared is set in redisplay_window and