Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Package Development > Messages >
Mathematica > Core Language > Tuning & Debugging > Messages >

$MessagePrePrint

$MessagePrePrint
is a global variable whose value, if set, is applied to expressions before they are included in the text of messages.
Have expressions in messages print out in TraditionalForm:
Restore the default. Now the expressions are shown in StandardForm:
Have expressions in messages print out in TraditionalForm:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
Restore the default. Now the expressions are shown in StandardForm:
In[3]:=
Click for copyable input
Out[3]=
Locally define $MessagePrePrint so that expressions sent to messages are shown in a circle:
The local definition does not affect messages outside the Block:
Make a list of all expressions sent to messages during a computation:
New in 2
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team