[luatex] Behavior of node lists.
Stephan Hennig
mailing_list at arcor.de
Wed Nov 7 19:37:19 CET 2012
Am 06.07.2011 15:43, schrieb Taco Hoekwater:
> On 07/04/11 09:06, Paul Isambert wrote:
>>
>> The manual says you're in charge of ensuring that in
>> "node.insert_after(H, N, x)", N is in the list denoted by H. The thing
>> is, H doesn't seem to matter at all, unless it's nil:
>
> Actually H is also useful if N is nil (that is a tail-append the list
> that starts at H), but it is true that H is generally unused.
If N is known to be non-nil, e.g., a glyph node, is it save to call
node.insert_after(nil, N, x) ?
If the answer is 'Yes', I propose re-ordering parameters of function
node.insert_after (and node.insert_before), so that head can be easily
left out in the function call:
function node.insert_after(<new>, <current>, <head>)
Best regards,
Stephan Hennig
More information about the luatex
mailing list