>>>>> "Asger" == Asger K Alstrup Nielsen <[EMAIL PROTECTED]> writes:
>> 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...):
Asger> I don't think the Insets in general need a unique identifier
Asger> like this.
My example was not support to provide an identifier for each inset,
but for each inset *class*. Just a way to avoid those enums. I'm not
sure it makes sense, however. That's just a way to allow insets
unknown to the kernel to register themselves.
Asger> However, the paragraphs DO need an identifier, if we want to
Asger> support running LaTeX in the background: We have to make sure
Asger> that we can find the original paragraphs when we return from
Asger> the background execution. So every time a paragraph is
Asger> changed, the serial number is also changed. This way, we can
Asger> be sure that when we insert an error-box that we will do it the
Asger> right position: If the paragraph number does not exist anymore,
Asger> we will be able to tell.
Maybe checksumming the paragraphs?
JMarc