]> git.eshelyaron.com Git - emacs.git/commitdiff
* cmds.c (internal_self_insert): Fix EMACS_INT type typo.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 26 Sep 2011 15:25:04 +0000 (08:25 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 26 Sep 2011 15:25:04 +0000 (08:25 -0700)
src/ChangeLog
src/cmds.c

index 9a2590eb54edde148f905b35ff251e75a5332024..ff0972fd0f1f84f2b03c2e1a282b465325c58dfb 100644 (file)
        * cmds.c (move_point): New function, that does the gist of
        Fforward_char and Fbackward_char, but does so while checking
        for integer overflow more accurately.
-       (Fforward_char, Fbackward_char, internal_self_insert): Use it.
+       (Fforward_char, Fbackward_char): Use it.
        (Fforward_line, Fend_of_line, internal_self_insert)
        (internal_self_insert):
        Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough.
index ed5bf5d282e5ad7929e3b6ecae0a5cdefd01f6d4..3d43c2447adfaba68401321b241bb82c03bf40d1 100644 (file)
@@ -471,7 +471,7 @@ internal_self_insert (int c, EMACS_INT n)
        }
 
       replace_range (PT, PT + chars_to_delete, string, 1, 1, 1);
-      move_point (n + spaces_to_insert, 1);
+      Fforward_char (make_number (n + spaces_to_insert));
     }
   else if (n > 1)
     {