From c96e5d6aa74df84229cf71ccb098dac5411860c1 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 26 Sep 2011 08:25:04 -0700 Subject: [PATCH] * cmds.c (internal_self_insert): Fix EMACS_INT type typo. --- src/ChangeLog | 2 +- src/cmds.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 9a2590eb54e..ff0972fd0f1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -132,7 +132,7 @@ * 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. diff --git a/src/cmds.c b/src/cmds.c index ed5bf5d282e..3d43c2447ad 100644 --- a/src/cmds.c +++ b/src/cmds.c @@ -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) { -- 2.39.2