[NTG-context] Can not register the callback functions in MkIV

Yanrui Li liyanrui.m2 at gmail.com
Fri Feb 19 08:04:49 CET 2010


Now it seems that we have not allowed to register the callback functions
since beta 2010.02.18.

For example:


local old_pre_linebreak_filter = callback.find ('pre_linebreak_filter')

local function my_pre_linebreak_filter (head, groupcode)
    if old_pre_linebreak_filter then
    old_pre_linebreak_filter (head, groupcode)
    print ('This is my pre_linebreak_callback')
    return true

callback.register ('pre_linebreak_filter', my_pre_linebreak_filter)



This is just a test!


The 'my_pre_linebreak_filter' function can not work again. Is this a bug?

Best regards,

Li Yanrui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20100219/5d14d644/attachment.html>

More information about the ntg-context mailing list