aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmds.c
diff options
context:
space:
mode:
authorEli Zaretskii2010-09-24 13:48:10 -0400
committerEli Zaretskii2010-09-24 13:48:10 -0400
commitace1712c7feb83cc6b03d31b7a8b0439b83b7212 (patch)
tree8fb7f4713b4b14fc09f71d7f0c49274c4492a511 /src/cmds.c
parent4f3a2f8d41f3a1e2be27921e8271c5fdb78e6d98 (diff)
downloademacs-ace1712c7feb83cc6b03d31b7a8b0439b83b7212.tar.gz
emacs-ace1712c7feb83cc6b03d31b7a8b0439b83b7212.zip
Fix int/EMACS_INT use in ccl.c, cmds.c, data.c, dispnew.c.
keyboard.c (make_lispy_position): Use EMACS_INT for buffer positions. xdisp.c (redisplay_internal, try_window_id) (set_cursor_from_row, find_first_unchanged_at_end_row): Use EMACS_INT for buffer positions. dispextern.h (set_cursor_from_row, mode_line_string) (marginal_area_string): Adjust prototypes. dispnew.c (increment_matrix_positions) (increment_row_positions, copy_glyph_row_contents) (mode_line_string, marginal_area_string): Use EMACS_INT for buffer positions. dispextern.h (mode_line_string, marginal_area_string) (increment_matrix_positions, increment_row_positions): Adjust prototypes. data.c (Faref, Faset): Use EMACS_INT for string length and positions. cmds.c (internal_self_insert): Use EMACS_INT for the count of characters to insert. ccl.c (Fccl_execute_on_string): Use EMACS_INT for string position and size.
Diffstat (limited to 'src/cmds.c')
-rw-r--r--src/cmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmds.c b/src/cmds.c
index 0647810a42c..e12d7c370d9 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -37,7 +37,7 @@ Lisp_Object Qkill_forward_chars, Qkill_backward_chars;
37/* A possible value for a buffer's overwrite-mode variable. */ 37/* A possible value for a buffer's overwrite-mode variable. */
38Lisp_Object Qoverwrite_mode_binary; 38Lisp_Object Qoverwrite_mode_binary;
39 39
40static int internal_self_insert (int, int); 40static int internal_self_insert (int, EMACS_INT);
41 41
42DEFUN ("forward-point", Fforward_point, Sforward_point, 1, 1, 0, 42DEFUN ("forward-point", Fforward_point, Sforward_point, 1, 1, 0,
43 doc: /* Return buffer position N characters after (before if N negative) point. */) 43 doc: /* Return buffer position N characters after (before if N negative) point. */)
@@ -304,7 +304,7 @@ After insertion, the value of `auto-fill-function' is called if the
304 { 304 {
305 int character = translate_char (Vtranslation_table_for_input, 305 int character = translate_char (Vtranslation_table_for_input,
306 (int) XINT (last_command_event)); 306 (int) XINT (last_command_event));
307 int val = internal_self_insert (character, (int) XFASTINT (n)); 307 int val = internal_self_insert (character, XFASTINT (n));
308 if (val == 2) 308 if (val == 2)
309 nonundocount = 0; 309 nonundocount = 0;
310 frame_make_pointer_invisible (); 310 frame_make_pointer_invisible ();
@@ -323,7 +323,7 @@ static Lisp_Object Qexpand_abbrev;
323static Lisp_Object Qpost_self_insert_hook, Vpost_self_insert_hook; 323static Lisp_Object Qpost_self_insert_hook, Vpost_self_insert_hook;
324 324
325static int 325static int
326internal_self_insert (int c, int n) 326internal_self_insert (int c, EMACS_INT n)
327{ 327{
328 int hairy = 0; 328 int hairy = 0;
329 Lisp_Object tem; 329 Lisp_Object tem;