diff options
| author | Stefan Monnier | 2007-05-19 15:15:19 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-05-19 15:15:19 +0000 |
| commit | d46b87e92ff89e2a712fd9e45c4fac9524d773a4 (patch) | |
| tree | d41bfe5d237988d1e5b138d48ebab5fc9dff7069 | |
| parent | 5073ad8e155ea640d0229b1e3bf9e5e75cf70e5e (diff) | |
| download | emacs-d46b87e92ff89e2a712fd9e45c4fac9524d773a4.tar.gz emacs-d46b87e92ff89e2a712fd9e45c4fac9524d773a4.zip | |
(skip_chars): Update syntax-table only after we checked that
the new location is valid.
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/syntax.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 9e0ec429552..220a32a5022 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * syntax.c (skip_chars): Update syntax-table only after we checked that | ||
| 4 | the new location is valid. | ||
| 5 | |||
| 1 | 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 6 | 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 7 | ||
| 3 | * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around | 8 | * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around |
diff --git a/src/syntax.c b/src/syntax.c index a9e6dda81fe..acb5d37825c 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -1669,10 +1669,10 @@ skip_chars (forwardp, syntaxp, string, lim, handle_iso_classes) | |||
| 1669 | p = GPT_ADDR; | 1669 | p = GPT_ADDR; |
| 1670 | stop = endp; | 1670 | stop = endp; |
| 1671 | } | 1671 | } |
| 1672 | UPDATE_SYNTAX_TABLE_BACKWARD (pos - 1); | ||
| 1672 | if (! fastmap[(int) SYNTAX (p[-1])]) | 1673 | if (! fastmap[(int) SYNTAX (p[-1])]) |
| 1673 | break; | 1674 | break; |
| 1674 | p--, pos--; | 1675 | p--, pos--; |
| 1675 | UPDATE_SYNTAX_TABLE_BACKWARD (pos - 1); | ||
| 1676 | } | 1676 | } |
| 1677 | } | 1677 | } |
| 1678 | } | 1678 | } |