From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78354 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: output of token.command_name() [was: Ctx: list of commands] Date: Tue, 18 Sep 2012 12:25:06 +0200 Message-ID: <50584C02.7030907@wxs.nl> References: <20120917192956.GA7316@phlegethon> <5057A305.2010906@wxs.nl> <20120918095253.GA9686@phlegethon> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1347963926 20041 80.91.229.3 (18 Sep 2012 10:25:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Sep 2012 10:25:26 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 18 12:25:30 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TDuzg-0004KI-94 for gctc-ntg-context-518@m.gmane.org; Tue, 18 Sep 2012 12:25:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C9088101FE; Tue, 18 Sep 2012 12:25: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 kXE6RV29idld; Tue, 18 Sep 2012 12:25:20 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 845D8101E6; Tue, 18 Sep 2012 12:25:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 34849101E6 for ; Tue, 18 Sep 2012 12:25:19 +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 H7PgmASpHbf8 for ; Tue, 18 Sep 2012 12:25:18 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 46D2A101E2 for ; Tue, 18 Sep 2012 12:25:18 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8IAPBj5023899 for ; Tue, 18 Sep 2012 12:25:17 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by pragma-net.nl (SurgeMail 6.1c) with ESMTP (TLS) id 6808-1713362 for ; Tue, 18 Sep 2012 12:25:09 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 In-Reply-To: <20120918095253.GA9686@phlegethon> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=16; city=Zeewolde; latitude=52.3302; longitude=5.5364; http://maps.google.com/maps?q=52.3302,5.5364&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08I0ypbMe - 54e70b00dbf9 - 20120918 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:78354 Archived-At: On 18-9-2012 11:52, Philipp Gesang wrote: > =B7=B7=B7=B7=B7=B7=B7=B7=B7 > >> On 17-9-2012 21:29, Philipp Gesang wrote: >>> =B7=B7=B7=B7=B7=B7=B7=B7=B7 >>> >>>> Hello, >>>> >>>> 1) is there a Ctx command/switch which would generate list of all curr= ent ConTeXt commands? E.g. >>> >>> Hi Luk=E1=9A, if you interpret =93current Context commands=94 as =93mac= ros >>> known to TeX=94, you may try dumping the hashtable with these lines: >>> >>> =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7 >>> \starttext >>> \startluacode >>> table.print(tex.hashtokens()) >>> \stopluacode >>> \stoptext >>> =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7 >> >> or >> >> \enabledirectives[system.dumphash] >> >> \enabledirectives[system.dumpdelta] > > In trackers.dumphashtofile(), you use the Luatex function > token.commandname(). Among others, it returns a category > =93undefined_cs=94. Are those the macros that have been defined and > invalidated, but are kept on the hash anyways because of some > issues involving \gdef? > > (I remember reading about this in =93TeX the Program=94 but I can=92t > look it up right now as it is buried somewhere deep inside a book > crate.) well, undefined is still defined but with meaning 'undefined' ... indeed = all stays in the hash .. harmless ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________