Hrvoje Niksic <hniksic(a)srce.hr> writes:
"Stephen J. Turnbull" <turnbull(a)sk.tsukuba.ac.jp>
writes:
> It's not clear to me what it means to "preserve metainformation"
It means "not fuck up all the extents and text properties".
Both extents and text properties, as well as markers, are logically
defined in *characters*, which means that it's perfectly feasible to
retain them through coding-region changes.
Currently there is no way to convert the buffer into another coding
and have extents intact.
But decode-coding-region basically changes where `characters' begin and
end, right?. If I create an extent in an iso8859-1 buffer (however it got
there) but then realize 'oh shit, that is really shift-jis encoded goo' and
decode the coding region, isn't it possible that the extent could start or
end in the _middle_ of a shift-his sequence, and it would then be in the
middle of the new character?
Would the open/closed start/end-ness be of use there?
-Bill P.