From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84553 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Lua & \let Date: Fri, 4 Oct 2013 10:55:40 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1380876944 8491 80.91.229.3 (4 Oct 2013 08:55:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Oct 2013 08:55:44 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 04 10:55:49 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VS1Ap-0001Px-2G for gctc-ntg-context-518@m.gmane.org; Fri, 04 Oct 2013 10:55:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D310D101EB; Fri, 4 Oct 2013 10:53:23 +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 gumdYGo73Rnu; Fri, 4 Oct 2013 10:53:22 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E7842101E7; Fri, 4 Oct 2013 10:53:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D2DCE101E7 for ; Fri, 4 Oct 2013 10:53:20 +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 kazj8alCEPZ5 for ; Fri, 4 Oct 2013 10:53:20 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 1F9C7101E5 for ; Fri, 4 Oct 2013 10:53:20 +0200 (CEST) Original-Received: from mail-ea0-x234.google.com (mail-ea0-x234.google.com [IPv6:2a00:1450:4013:c01::234]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r948tgZl021193 for ; Fri, 4 Oct 2013 10:55:42 +0200 Original-Received: by mail-ea0-f180.google.com with SMTP id h10so1629024eaj.39 for ; Fri, 04 Oct 2013 01:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=KFvx11i8jbC/TnNde7iO4rADMxzepQR563Xf6/f0uAw=; b=1ILOGKVld779wsEJ+hKOzcAI1hIp0gJOPf808MmgFJDW99bEDhD+GNte5yhDWhXfX0 9XL/3UL/g38urI5Ma233SpURr+rqs31hK14OenQ89sm6xiYmtLfCpQG4f2dHA5snZOFD XU9vpS2/kq7slcVXhH3cV4b7fPcR6i5e/qIuHaq1EiVf9iqygjUVu2oA9nDOfMTqkzVW h5lgQ6dZsQ0+6II4hT3Uk43ipfK8P8ol5N+EMXQpqqU2osujxGDf/Attqw70s+ru3cG6 6uzL5zjxij3zEkgchkQsLMhKKO+DtiqGyKh+K+2lBqx7GwmWNN2m5/OQng3oClGdtJGG x7qQ== X-Received: by 10.14.180.73 with SMTP id i49mr1859174eem.55.1380876942043; Fri, 04 Oct 2013 01:55:42 -0700 (PDT) Original-Received: from keima.localdomain (x2f221bd.dyn.telefonica.de. [2.242.33.189]) by mx.google.com with ESMTPSA id r48sm25542426eev.14.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Oct 2013 01:55:41 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1510) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c01::234; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07KwUTGvb - 79b83e0f3efc - 20131004 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:84553 Archived-At: Am 04.10.2013 um 10:47 schrieb Proch=E1zka Luk=E1=B9 Ing. - Pontex s. r. o.= : > Hello all, > = > how to call \let from within Lua? > = > I'd need to "\let\T=3D4" using Lua. > = > The following code doesn't work (not so surprisingly): > = > ---- > \startluacode > a =3D 4 > \stopluacode > = > \expandafter\let\expandafter\T=3D\cldcontext{a} > = > \starttext > Test \T. > \stoptext > ---- > = > What's the correct way? You need more \expandafter because \cldcontext needs two expansion steps: \expandafter\expandafter\expandafter\let\expandafter\expandafter\expandaf= ter\T\expandafter\expandafter\expandafter=3D\cldcontext{a} but I wonder why you don use \def or \edef: \edef\T{\cldcontext{a}} 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 ___________________________________________________________________________= ________