27.5 Presentation Translator Utilities

These are some utilities for maintain presentation translators in command tables. Presentation translators are discussed in more detail in Chapter 23. [annotate]

add-presentation-translator-to-command-table  command-table translator-name &key (errorp t) [Function]
          

Adds the translator named by translator-name to command-table. The translator must have been previously defined with define-presentation-translator or define-presentation-to-command-translator. command-table is a command table designator. [annotate]

If translator-name is already present in command-table and errorp is true, then the command-already-present error will be signalled. When the translator is already present and errorp is false, the old translator will first be removed. [annotate]

[annotate]

remove-presentation-translator-from-command-table  command-table translator-name &key (errorp t) [Function]
          

Removes the translator named by translator-name from command-table. command-table is a command table designator. [annotate]

If the translator is not present in the command table and errorp is true, then the command-not-present error will be signalled. [annotate]

[annotate]

map-over-command-table-translators  function command-table &key (inherited t) [Function]
          

Applies function to all of the translators accessible in command-table. function must be a function of one argument, the translator; it has dynamic extent. command-table is a command table designator. [annotate]

If inherited is false, this applies function only to those translators present in command-table, that is, it does not map over any inherited command tables. If inherited is true, then the inherited command tables are traversed in the same order as for do-command-table-inheritance. [annotate]

[annotate]

find-presentation-translator  translator-name command-table &key (errorp t) [Function]
          

Given a translator name and a command table, returns two values, the presentation translator and the command table in which it was found. If the translator is not present in command-table and errorp is true, then the command-not-accessible error will be signalled. command-table is a command table designator. [annotate]

[annotate]