]> code.delx.au - gnu-emacs/commitdiff
(Fmove_to_column): Set next_boundary with correct start pt.
authorRichard M. Stallman <rms@gnu.org>
Sun, 8 Apr 2007 23:59:33 +0000 (23:59 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 8 Apr 2007 23:59:33 +0000 (23:59 +0000)
src/ChangeLog
src/indent.c

index a28f3c45f2fefeca790eeaa39c3a1ac4ae9633b4..0f446131c3fe85ee901450fe44c61b8a7dfbbbc4 100644 (file)
@@ -1,3 +1,7 @@
+2007-04-09  Martin Rudalics  <rudalics@gmx.at>
+
+       * indent.c (Fmove_to_column): Set next_boundary with correct start pt.
+
 2007-04-08  Richard Stallman  <rms@gnu.org>
 
        * xdisp.c (syms_of_xdisp) <message-log-max>: Default 100.
index 828267c3abfb9ba96d5fd877ca86de6d20b6b3e2..b43120ab560f5733859d40cbdadcb0cb1f089b78 100644 (file)
@@ -951,7 +951,6 @@ The return value is the current column.  */)
   pos = PT;
   pos_byte = PT_BYTE;
   end = ZV;
-  next_boundary = pos;
 
   /* If we're starting past the desired column,
      back up to beginning of line and scan from there.  */
@@ -963,6 +962,8 @@ The return value is the current column.  */)
       col = 0;
     }
 
+  next_boundary = pos;
+
   while (pos < end)
     {
       while (pos == next_boundary)