>> For the former, we could probably extend the `b_property` and >> `e_property` fields of `gl_state` (which hold charpos) to also store >> their bytepos equivalent, which should significantly reduce the number >> of conversions between bytepos and charpos. > I.e. something like the patch below (which passes all tests except for > `test/src/comp-tests` for a reason that completely escapes me). Found the culprit! The patch below passes `make check`. Stefan