From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id A98CE24588 for ; Thu, 11 Apr 2024 19:03:55 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 7C0D3483F99 for ; Thu, 11 Apr 2024 18:59:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=freedom.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ms71IV3ZcP0v for ; Thu, 11 Apr 2024 18:59:25 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 117C24844B2 for ; Thu, 11 Apr 2024 18:58:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 770EC4841B8 for ; Thu, 11 Apr 2024 18:57:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zauMH716rmoE for ; Thu, 11 Apr 2024 18:57:51 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.233.34.146; helo=outbound.soverin.net; envelope-from=j.hagen@freedom.nl; receiver= Received: from outbound.soverin.net (outbound.soverin.net [185.233.34.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id BCE5148430A for ; Thu, 11 Apr 2024 18:56:59 +0200 (CEST) Received: from smtp.freedom.nl (c04cst-smtp-frd02.int.sover.in [10.10.4.108]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 4VFm7v34zZz5t for ; Thu, 11 Apr 2024 16:56:59 +0000 (UTC) Received: from smtp.freedom.nl (smtp.freedom.nl [10.10.4.108]) by freedom.nl (Postfix) with ESMTPSA id 4VFm7v1fnkz2xPP for ; Thu, 11 Apr 2024 16:56:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freedom.nl; s=default; t=1712854619; bh=sYjF/rIpSLU/pXsSiH69dMpqkMRBxdIpyzY6UyYGTak=; h=Date:Subject:To:References:From:In-Reply-To:From; b=vme5ikH1lkYfzJqP9MXNlUC5J9SQMN/uN2TA7D9RAfinG9OwG5BoTZsldRAa0j3qf C06AEAXrfypNjV1AmpMQamIe554+5+25wjRRBaz27BUrjzKy0Z/F8Dp1ISMqmx29yP LXOnkDEz0K3Xdv6fDcVukFel2ynco8UtZ4Gg/8VY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freedom.nl; s=default; t=1712854619; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pyyRijV4iy5Jk0FtD0p5+U8K7pO50zaRNlM11ilReoU=; b=wBX9B3AbydxLJaxAbHn3FK2Afe9PsLq6retziSJyAbsmHLR11ta6pjx4vEByKiYRzN21BZ 3V+qLWhWsnSFgBJu+ZS9t5IcV7aV5NAvDZnbkUo0wlxb2cJ+xL3Fvo6vDpmh8OvJJNnNUF sO8hpF9AxVcB4O0tUgm6oHWr1jTwkc4= ARC-Authentication-Results: i=1; smtp.freedom.nl; auth=pass smtp.mailfrom=j.hagen@freedom.nl ARC-Seal: i=1; s=default; d=freedom.nl; t=1712854619; a=rsa-sha256; cv=none; b=IaymnAcXlZcLwEu5fnDKiaWf4KPAdulWKQ+j+scBNm5aFP+E4iOorEpV5VhiBN4Id4LDTj vMdV+MbQ3rZdp5KHwVf/G+JJ+ktt+86t1ILgxxlP7yvsHZ8+ktM5YTt2O1o/3Uc4EAHJGM 7teIeDg683e0G19HxZrPWtbo/sLpng0= Message-ID: <4471e2cb-b566-40ec-8784-c59261f9ff89@freedom.nl> Date: Thu, 11 Apr 2024 18:56:59 +0200 MIME-Version: 1.0 Content-Language: en-US To: Pablo Rodriguez via ntg-context References: X-Soverin-Authenticated: true In-Reply-To: Message-ID-Hash: NT64MZ5GCSYYOCZ2UTM6QW4XUQQC3XP2 X-Message-ID-Hash: NT64MZ5GCSYYOCZ2UTM6QW4XUQQC3XP2 X-MailFrom: j.hagen@freedom.nl X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: \luaescapestring in proper Lua List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Hans Hagen via ntg-context Cc: Hans Hagen Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit On 4/11/2024 5:07 PM, Pablo Rodriguez via ntg-context wrote: > On 4/10/24 21:48, Hans Hagen via ntg-context wrote: >> On 4/10/2024 7:49 PM, Pablo Rodriguez via ntg-context wrote: >>> [...] >>> I wonder whether there is a proper way in the Lua code to avoid >>> [[\luaescapestring{}]] in \ctxlua. >>> [...] >> context(tokens.scanners.string()) > > Many thanks for your reply, Hans. > >> \protected\def\PrintTheThing{\ctxlua{document.print_the_thing()}} > > Sorry, but why \protected is required or recommended here? depends if you want it to be expandable ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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 / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________