summaryrefslogtreecommitdiff
path: root/src/indent.c
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2007-09-27 18:27:48 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2007-09-27 18:27:48 +0000
commitbdf5f8ef91c0d481134603d0840c07debc32db01 (patch)
tree8b6fdc2ae9e6336659b0e9600da940800b452624 /src/indent.c
parentd567be222cce21e4958a27906d81fceffa40a45c (diff)
downloademacs-bdf5f8ef91c0d481134603d0840c07debc32db01.tar.gz
emacs-bdf5f8ef91c0d481134603d0840c07debc32db01.tar.bz2
emacs-bdf5f8ef91c0d481134603d0840c07debc32db01.zip
(Fmove_to_column): Use EMACS_INT for buffer positions.
Diffstat (limited to 'src/indent.c')
-rw-r--r--src/indent.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/indent.c b/src/indent.c
index 88856814279..c07073347e2 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -932,19 +932,19 @@ The return value is the current column. */)
(column, force)
Lisp_Object column, force;
{
- register int pos;
- register int col = current_column ();
- register int goal;
- register int end;
+ register EMACS_INT pos;
+ register EMACS_INT col = current_column ();
+ register EMACS_INT goal;
+ register EMACS_INT end;
register int tab_width = XINT (current_buffer->tab_width);
register int ctl_arrow = !NILP (current_buffer->ctl_arrow);
register struct Lisp_Char_Table *dp = buffer_display_table ();
register int multibyte = !NILP (current_buffer->enable_multibyte_characters);
Lisp_Object val;
- int prev_col = 0;
+ EMACS_INT prev_col = 0;
int c = 0;
- int next_boundary, pos_byte;
+ EMACS_INT next_boundary, pos_byte;
if (tab_width <= 0 || tab_width > 1000) tab_width = 8;
CHECK_NATNUM (column);
@@ -970,7 +970,7 @@ The return value is the current column. */)
{
while (pos == next_boundary)
{
- int prev = pos;
+ EMACS_INT prev = pos;
pos = skip_invisible (pos, &next_boundary, end, Qnil);
if (pos != prev)
pos_byte = CHAR_TO_BYTE (pos);
@@ -1090,7 +1090,7 @@ The return value is the current column. */)
and scan through it again. */
if (!NILP (force) && col > goal && c == '\t' && prev_col < goal)
{
- int goal_pt, goal_pt_byte;
+ EMACS_INT goal_pt, goal_pt_byte;
/* Insert spaces in front of the tab to reach GOAL. Do this
first so that a marker at the end of the tab gets