From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73635 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: How to define a command... Date: Thu, 5 Jan 2012 21:21:06 +0100 Message-ID: <7E99BDB8-C183-4853-8013-7E68AF7DB885@googlemail.com> References: <6457E519-6F30-482B-98DC-08BD546F8B2F@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1325794883 23688 80.91.229.12 (5 Jan 2012 20:21:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 Jan 2012 20:21:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 05 21:21:19 2012 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 1RitoM-00024m-Kf for gctc-ntg-context-518@m.gmane.org; Thu, 05 Jan 2012 21:21:18 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CB1BECB1DC; Thu, 5 Jan 2012 21:21:17 +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 kWvsu-UZNkfY; Thu, 5 Jan 2012 21:21:15 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5A57DCB1D5; Thu, 5 Jan 2012 21:21:15 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 56DB7CB1D5 for ; Thu, 5 Jan 2012 21:21:14 +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 kCE6PZtnS78I for ; Thu, 5 Jan 2012 21:21:12 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 9B894CB1D2 for ; Thu, 5 Jan 2012 21:21:12 +0100 (CET) Original-Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q05KLAeH016154 for ; Thu, 5 Jan 2012 21:21:10 +0100 Original-Received: by eekc41 with SMTP id c41so762498eek.14 for ; Thu, 05 Jan 2012 12:21:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=Q9ydRUZw2zMtiIUcXc0NHq+r7aS6hzb0nk40ovU1/cw=; b=tG2zRXLfKk994fWERqwEj18xGvRe3WnvQqgIm0wP2zw9cLH9E252g6tCd58BYiyAPn z6/gALwuum60spIw1c8Pz56uEf0rT32cq+cUi4TGaR9DKcRkL0X9Q7LJyU4KaxdCq5OI L2CNGK2Aav2c8m6Dzm+QCY1SKJKceWEoIDDgg= Original-Received: by 10.14.9.228 with SMTP id 76mr1267126eet.30.1325794870009; Thu, 05 Jan 2012 12:21:10 -0800 (PST) Original-Received: from [192.168.2.35] (p57AFC0E2.dip.t-dialin.net. [87.175.192.226]) by mx.google.com with ESMTPS id 19sm61962144eew.7.2012.01.05.12.21.07 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 Jan 2012 12:21:08 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06GhUla6b - d9e0a41c79ce - 20120105 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:73635 Archived-At: Am 05.01.2012 um 21:11 schrieb Meer, H. van der: > Reccently I did something random in ctxlua. I post it in the hope it will= be useful. > = > Hans van der Meer > = > \startluacode > -- Define our namespace as hvdm = > hvdm =3D hvdm or {} = Don=92t use a global namespace, you can use =93userdata=94. userdata =3D userdata or { } userdata.hvdm =3D userdata.hvdm or { } Wolfgang ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________