[A character in Emacs is 22 bytes. Unicode insets are similar.]
> Arghh, do you mean we are heading to a emacs-weighted program?? I'd
> rather avoid that.

No.  I'm just stating that a bunch of Unicode insets in your Latin1
encoded document will not severly affect performance.
If you need more Unicode, you should chose Unicode encoding for your
document.

> And why not a registering mechanism, where each inset registers
> himself and gets an unique identifier? Each Inset could have a
> id member that contains that. Something like the following (not
> tested, and not really well thought...):

I don't think the Insets in general need a unique identifier like this.

However, the paragraphs DO need an identifier, if we want to support
running LaTeX in the background:  We have to make sure that we can
find the original paragraphs when we return from the background
execution.  So every time a paragraph is changed, the serial number
is also changed.
This way, we can be sure that when we insert an error-box that we
will do it the right position:  If the paragraph number does not
exist anymore, we will be able to tell.

Greets,

Asger

Reply via email to