$NewMessage

$NewMessage

is a global variable that, if set, is applied to the symbol name and tag of messages that are requested but have not yet been defined.

Details

Examples

Basic Examples  (1)

A typical value for $NewMessage is a function that searches for messages in file. Note that this value for $NewMessage will also be applied to internal requests for messages and so may result in additional output:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input

If a message has not previously been generated, the value of $NewMessage is applied and evaluated:

In[3]:=
Click for copyable input
Out[3]=

Restore the default value of $NewMessage:

In[4]:=
Click for copyable input
Out[4]=
In[5]:=
Click for copyable input
Out[5]=

See Also

$NewSymbol  Message

Tutorials

Introduced in 1991
(2.0)