> Also, it is important to update the syntax-table only after making sure that > the new position is valid. So I believe the patch below is what we want. > > > Stefan > > > --- orig/src/syntax.c > +++ mod/src/syntax.c > @@ -1691,10 +1691,10 @@ > 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); > } > } > } Indeed, though I'd prefer the attached one. BTW, did you look at the backward-word problem I mentioned in my previous mail?