Re: [NTG-context] Can not register the callback functions in MkIV
2010/2/19 Yanrui Li liyanrui...@gmail.com Hi, Now it seems that we have not allowed to register the callback functions since beta 2010.02.18. For example: \startluacode 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) end print ('This is my pre_linebreak_callback') return true end callback.register ('pre_linebreak_filter', my_pre_linebreak_filter) \stopluacode \starttext This is just a test! \stoptext The 'my_pre_linebreak_filter' function can not work again. Is this a bug? -- Best regards, Li Yanrui I see. The 'pre_linebreak_filter' callback function is frozen. -- Best regards, Li Yanrui ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Can not register the callback functions in MkIV
On 19-2-2010 13:21, Yanrui Li wrote: 2010/2/19 Yanrui Liliyanrui...@gmail.com Hi, Now it seems that we have not allowed to register the callback functions since beta 2010.02.18. For example: \startluacode 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) end print ('This is my pre_linebreak_callback') return true end callback.register ('pre_linebreak_filter', my_pre_linebreak_filter) \stopluacode \starttext This is just a test! \stoptext The 'my_pre_linebreak_filter' function can not work again. Is this a bug? -- Best regards, Li Yanrui I see. The 'pre_linebreak_filter' callback function is frozen. indeed as otherwise you kick out functionality; there are two user hooks: tasks.appendaction(processors,before,modules.mine.whatever_a) tasks.appendaction(processors,after,modules.mine.whatever_b) as it's impossible to forsee what interference happens it will be clear that there is no support beyonf this Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Can not register the callback functions in MkIV
Hi, Now it seems that we have not allowed to register the callback functions since beta 2010.02.18. For example: \startluacode 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) end print ('This is my pre_linebreak_callback') return true end callback.register ('pre_linebreak_filter', my_pre_linebreak_filter) \stopluacode \starttext This is just a test! \stoptext The 'my_pre_linebreak_filter' function can not work again. Is this a bug? -- Best regards, Li Yanrui ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___