* xdisp.c (redisplay_internal): Simplify because scan_for_column now
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 4 Oct 2013 13:41:10 +0000 (17:41 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Fri, 4 Oct 2013 13:41:10 +0000 (17:41 +0400)
uses find_newline instead of scan_newline and so doesn't move point.

src/ChangeLog
src/xdisp.c

index 38fb35d..28f201b 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-04  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * xdisp.c (redisplay_internal): Simplify because scan_for_column now
+       uses find_newline instead of scan_newline and so doesn't move point.
+
 2013-10-04  Paul Eggert  <eggert@cs.ucla.edu>
 
        Use hardware support for byteswapping on glibc x86 etc.
index 02f775b..50bf307 100644 (file)
@@ -13067,8 +13067,6 @@ redisplay_internal (void)
   match_p = XBUFFER (w->contents) == current_buffer;
   if (match_p)
     {
-      ptrdiff_t count1;
-
       /* Detect case that we need to write or remove a star in the mode line.  */
       if ((SAVE_MODIFF < MODIFF) != w->last_had_star)
        {
@@ -13077,14 +13075,8 @@ redisplay_internal (void)
            update_mode_lines++;
        }
 
-      /* Avoid invocation of point motion hooks by `current_column' below.  */
-      count1 = SPECPDL_INDEX ();
-      specbind (Qinhibit_point_motion_hooks, Qt);
-
       if (mode_line_update_needed (w))
        w->update_mode_line = 1;
-
-      unbind_to (count1, Qnil);
     }
 
   consider_all_windows_p = (update_mode_lines