On 18-9-2012 11:52, Philipp Gesang wrote:
···<date: 2012-09-18, Tuesday>···<from: Hans Hagen>···

On 17-9-2012 21:29, Philipp Gesang wrote:
···<date: 2012-09-17, Monday>···<from: Procházka Lukáš Ing. - Pontex s. r. 
o.>···

Hello,

1) is there a Ctx command/switch which would generate list of all current 
ConTeXt commands? E.g.

Hi Lukáš, if you interpret “current Context commands” as “macros
known to TeX”, you may try dumping the hashtable with these lines:

·······································································
\starttext
   \startluacode
     table.print(tex.hashtokens())
   \stopluacode
\stoptext
·······································································

or

\enabledirectives[system.dumphash]

\enabledirectives[system.dumpdelta]

In trackers.dumphashtofile(), you use the Luatex function
token.commandname(). Among others, it returns a category
“undefined_cs”. 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 “TeX the Program” but I can’t
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 the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to