18.4 Interaction Configuration

► |  | The Racket Reference

1 | Language Model
2 | Notation for Documentation
3 | Syntactic Forms
4 | Datatypes
5 | Structures
6 | Classes and Objects
7 | Units
8 | Contracts
9 | Pattern Matching
10 | Control Flow
11 | Concurrency and Parallelism
12 | Macros
13 | Input and Output
14 | Reflection and Security
15 | Operating System
16 | Memory Management
17 | Unsafe Operations
18 | Running Racket
| Bibliography
| Index

▼ | 18 | Running Racket

18.1 | Running Racket or GRacket
18.2 | Libraries and Collections
18.3 | Interactive Help
18.4 | Interaction Configuration
18.5 | Interactive Module Loading
18.6 | Debugging
18.7 | Controlling and Inspecting Compilation
18.8 | Kernel Forms and Functions

On this page:

current-interaction-info

top contents ← prev up next →

#### 18.4`` Interaction Configuration🔗ℹ

(require racket/interaction-info) | package: base

The bindings documented in this section are provided by the racket/interaction-info library, not racket/base or racket.

The racket/interaction-info library provides a way to register a langauge’s configuration for a read-eval-print loop and editor.

> parameter (current-interaction-info)
> → (or/c #f (vector/c module-path? symbol? any/c))
> (current-interaction-info info) → void?
> info : (or/c #f (vector/c module-path? symbol? any/c))

A parameter that provides configuration for a language for use by interactive development tools, such as a command-line evaluation prompt with syntax coloring and indentation support. This parameter is typically set by a configure-runtime module; see also Language Run-Time Configuration.

Instead of providing configuration information directly, the current-interaction-info parameter specifies a module to load, a exported function to call, and data to pass as an argument to the exported function. The result of that function should be another one that accepts two arguments: a symbol indicating the kind of information requested (as defined by external tools), and a default value that normally should be returned if the symbol is not recognized.

For information on defining a new #lang language, see syntax/module-reader.

Added in version 8.3.0.2 of package base.

top contents ← prev up next →