From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62085 Path: news.gmane.org!not-for-mail From: =?ISO-8859-2?Q?Stefan_M=FCller?= Newsgroups: gmane.comp.tex.context Subject: Re: Calling Lua function from an external package Date: Wed, 29 Sep 2010 15:48:22 +0200 Message-ID: <4CA343A6.3000404@gmx.de> References: <4CA33AB1.5080500@wxs.nl> <4CA33EB2.7050502@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1285768225 9995 80.91.229.12 (29 Sep 2010 13:50:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 29 Sep 2010 13:50:25 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 29 15:50:18 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 1P0x31-00085n-6O for gctc-ntg-context-518@m.gmane.org; Wed, 29 Sep 2010 15:50:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6BA69CA768; Wed, 29 Sep 2010 15:50:12 +0200 (CEST) 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 oeK5zTPG9IRf; Wed, 29 Sep 2010 15:50:03 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8CDE8CA755; Wed, 29 Sep 2010 15:50:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D4A3ACA755 for ; Wed, 29 Sep 2010 15:50:01 +0200 (CEST) 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 y8dx5tYh95Iu for ; Wed, 29 Sep 2010 15:49:56 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 9B4FCCA753 for ; Wed, 29 Sep 2010 15:49:56 +0200 (CEST) Original-Received: from mail.gmx.net (mailout-de.gmx.net [213.165.64.22]) by filter1-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id o8TDntml002264 for ; Wed, 29 Sep 2010 15:49:56 +0200 Original-Received: (qmail invoked by alias); 29 Sep 2010 13:49:55 -0000 Original-Received: from 77-64-199-171.dynamic.primacom.net (EHLO [192.168.100.108]) [77.64.199.171] by mail.gmx.net (mp024) with SMTP; 29 Sep 2010 15:49:55 +0200 X-Authenticated: #11064435 X-Provags-ID: V01U2FsdGVkX1/cifZY/nHcccLn6v3Y7k2o1Z37Vq9RIWsWsEvVvQ +A4ySZlJ4GYD9m User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 In-Reply-To: X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.165.64.22; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07DcBNTFH - 65aa6872a9bd - 20100929 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 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:62085 Archived-At: I think that ";" is not needed to end an MP statement but to separate = two of them. So it works without as long as you only have one MP statement. Stefan On 29.09.2010 15:35, Proch=E1zka Luk=E1=B9 Ing. - Pontex s. r. o. wrote: > ... Thanks, it works now! It had to be fixed both in F() and in F2(). > > (I forgot ";" in MP statement as Lua doesn't require ";".) > > (Still it's a bit strange to me that calling F() worked even when the MP > statement in F() was not finished by ";" and F2() was not called.) > > Lukas ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________