From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/56381 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Can not register the callback functions in MkIV Date: Fri, 19 Feb 2010 14:05:24 +0100 Message-ID: <4B7E8C94.70404@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1266584735 23016 80.91.229.12 (19 Feb 2010 13:05:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Feb 2010 13:05:35 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 19 14:05:33 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NiSY0-00025J-Vi for gctc-ntg-context-518@m.gmane.org; Fri, 19 Feb 2010 14:05:33 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1FED2C9CD7; Fri, 19 Feb 2010 14:05:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Aw7ksxvrctvw; Fri, 19 Feb 2010 14:05:29 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EB539C9CC7; Fri, 19 Feb 2010 14:05:28 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B52C5C9CC7 for ; Fri, 19 Feb 2010 14:05:27 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id y6K0vyOmFL15 for ; Fri, 19 Feb 2010 14:05:25 +0100 (CET) Original-Received: from mail.solcon.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by balder.ntg.nl (Postfix) with ESMTP id B976DC9C8F for ; Fri, 19 Feb 2010 14:05:25 +0100 (CET) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-9 (SurgeMail 4.2d2) with ESMTP id 7396-1713362 for multiple; Fri, 19 Feb 2010 14:04:16 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1 In-Reply-To: X-Authenticated-User: hagen@controller-9 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:56381 Archived-At: On 19-2-2010 13:21, Yanrui Li wrote: > 2010/2/19 Yanrui Li > >> 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 ___________________________________________________________________________________