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 A1541253CB for ; Mon, 29 Apr 2024 17:25:07 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id A6596484358 for ; Mon, 29 Apr 2024 17:23:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=gmx.es 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 5owb5_VEOjNb for ; Mon, 29 Apr 2024 17:23:50 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id CC9F64844F6 for ; Mon, 29 Apr 2024 17:23:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 9133A4841B5 for ; Mon, 29 Apr 2024 17:22:43 +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 BtiFxiHd7nhV for ; Mon, 29 Apr 2024 17:22:43 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=212.227.15.19; helo=mout.gmx.net; envelope-from=oinos@gmx.es; receiver= Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 087274841AD for ; Mon, 29 Apr 2024 17:22:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.es; s=s31663417; t=1714404162; x=1715008962; i=oinos@gmx.es; bh=8mr5VAdhkrjMSHdO1iBQKAYrOf906HsxsZzweWcKzl8=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:To:From:Subject: Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=OIPgXK76bCcqH1MpFX+i8MNMmJG3QaUrfCQbRNn1j+9AwUifMlmw25cosEPeWTIX cJSnwZDEHxy+Irrr6nFHRkNaZKaDWAa8GDz6IzSgebUBNBp+Ntv4EEUwuTv12XyOI d5QmHXfpugSYAGV8gBsQauoG/BlNKfJ5/RshJmWSfLhIKBuvYbwWUte4zH5+xl1cr f3YdmYfeZRbMYrH26NjmObTRW6AyLO270o6InWAMPADsaCv21SS8iPy0bVuObORYe jppFiJDmBqoCg5rSb8KMGlXNZwgJZVCknuzQ9zI1xRQZy3JDFdt8sYWGmrruLolOn qqNNEu7xdpMhmIpV4A== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.1.101] ([91.126.43.205]) by mail.gmx.net (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MFsUv-1rssft0wHv-00HOWx for ; Mon, 29 Apr 2024 17:22:42 +0200 Message-ID: <3950da22-fd1e-6cd7-23e8-fca463fcd96c@gmx.es> Date: Mon, 29 Apr 2024 17:22:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: en-US To: ConTeXt users X-Provags-ID: V03:K1:XBiYzttaVWe2FkmY3vPKlKWecsse3vNe9hq+kavJbT6y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-ID-Hash: H72U7Y4PTMZ5Z6HPBSMOOGEZX2XU3LZ5 X-Message-ID-Hash: H72U7Y4PTMZ5Z6HPBSMOOGEZX2XU3LZ5 X-MailFrom: oinos@gmx.es 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] unprotecting when defining in Lua List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Pablo Rodriguez via ntg-context Cc: Pablo Rodriguez Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Dear list, I have the following sample: \starttext \startluacode function document.test(str) context(str) end interfaces.definecommand { name = "testing", protected = false, macro = document.test, } \stopluacode \meaningfull\testing \def\test#1{#1} \meaningfull\test \stoptext Which is the right way to use "interfaces.definecommand" to get a simple command as in standard TeX? I mean, no a non \permanent or non \protected command. Many thanks for your help, Pablo ___________________________________________________________________________________ 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 ___________________________________________________________________________________