Jean-Marc Lasgouttes wrote:
John Levon <[EMAIL PROTECTED]> writes:

My experience tells me that getting cursor handling (at least) right
would be very difficult with insets - such that we'll end up with a
half-finished version that sort of works OK by the next release.

Yes.

However, my experience is now years old, maybe Abdel is right and the
core is in a much better state, so special-casing all the cursor
movement code can be done cleanly and easily.

I am not sure which of the recent changes would help in this
direction. Abdel, what do you have in mind?

Nothing too recent I guess and I am not sure when was John's last visit to the source code :-)

John, do you know about DocIterator? They were designed specifically for cursor navigation across insets.

As I said, I don't think we have a particular problem with cursor navigation (except for LTR/RTL issues); the only potential issue is with charstyle toggling and selection or words. One solution is to have one inset per word as outlined elsewhere. I am on purpose rejecting char based selection because the moment you need that, you don't really need charstyle to begin with.

Abdel.

Reply via email to