I've simplified the whole deal with a new definition of list that does not reset item-nr to 0:

<assign|list|<macro|item-render|item-transform|body|<with|current-item|<arg|item-render>|transform-item|<arg|item-transform>|<render-list|<arg|body>>>>>

<\enumerate>
<item>one

<item>two

<item>

<item>three

<item>four
</enumerate>

hello joe <value|item-nr>


the enumerate and "hello joe" line can be repeated a few thousand times to bring the same problem.

I guess it is because the texmacs document is a program. When a change is made, it has to be re-executed in it's entirety unless it that can be optimised out.

In some cases for me, though, the counter is never re-used again after the environment instance in which the new line is being inserted, so it could be optimised out...

So I need to talk to someone on the nature of these optimisations (if I am right).

Sam



_______________________________________________
Texmacs-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/texmacs-dev

Reply via email to