1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-19 01:10:57 -08:00

(skip_chars): Update syntax-table only after we checked that

the new location is valid.
This commit is contained in:
Stefan Monnier 2007-05-19 15:15:19 +00:00
parent 5073ad8e15
commit d46b87e92f
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
* syntax.c (skip_chars): Update syntax-table only after we checked that
the new location is valid.
2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around

View file

@ -1669,10 +1669,10 @@ skip_chars (forwardp, syntaxp, string, lim, handle_iso_classes)
p = GPT_ADDR;
stop = endp;
}
UPDATE_SYNTAX_TABLE_BACKWARD (pos - 1);
if (! fastmap[(int) SYNTAX (p[-1])])
break;
p--, pos--;
UPDATE_SYNTAX_TABLE_BACKWARD (pos - 1);
}
}
}