SuSE GmbH

SuSE Support Database

Title: Mathematica: Warnings during launch

----------

Mainpage o Searchform o History o Versions o Categories o Contents

----------

Mathematica: Warnings during launch

Applies to

Mathematica

Problem Description:

When Mathematica's X Window-based front end is launched, you may see error messages displayed in the shell window where you launched Mathematica or in a separate window titled "output from stderr". The wording of the message is:

         Warning: Actions not found: delete-next-character

Explanation:

Messages of this kind indicate that Mathematica has encountered a recognized resource with event/action override that it does not understand. The default settings in /usr/X11R6/lib/X11/XResources have several such settings. A typical one might look like this:

*XmText.Translations:   #override \n\
   ~Shift ~Meta ~Alt <Key>Delete:       delete-next-character() \n

Resolution:

To find which resources are problematic to Mathematica, run the X Window shell tool appres. Here is an example that stores the output in a text file named /tmp/known_resources.txt

    appres XMathematica > /tmp/known_resources.txt

Open the listing output in a text editor and search for instances of delete-next-character. For each instance, note the name of the resource to which the the override is associated. For the sample resource above, the name to note is "*XmText.Translations."

In a file that stores X resource settings, add Mathematica-specific resource settings that block these settings by setting the resource to an empty value. Continuing with our example above, you may want to enter this setting.

XMathematica*XmText.Translations:

Practical considerations:

The root user can add these settings directly to the XResources file. If the system administrator would like to confine these settings to Mathematica's application defaults file, the may be added to the XMathematica file that resides in the Mathematica directory:

        SystemFiles/FrontEnd/SystemResources/X

If you do not know where Mathematica is installed on your system, you can locate it by evaluating the following expression in a Mathematica notebook or in a shell interface to the Mathematica kernel:

        $TopDirectory

If a user does not have root access, the resource value can be on a per-user basis by editing the $HOME/.Xdefaults file.

Here are the settings that I added to my .Xdefaults file to resolve the problem. Your mileage may vary.

!===========================================================================
!                               XMathematica
!===========================================================================

XMathematica*XmText.Translations:   #override \n\
   ~Shift ~Meta ~Alt <Key>Delete: \n
XMathematica*Text.Translations:     #override \n\
   ~Shift ~Meta ~Alt <Key>Delete: \n
XMathematica*AxeText.Translations:  #override \n\
   ~Shift ~Meta ~Alt <Key>Delete: \n
XMathematica*XmTextField.Translations:      #augment \n\
   ~Shift ~Meta ~Alt <Key>osfDelete: \n\     

Credits:

This bug was encountered, solved, written up, and subitted to us by the esteemed P.J. Hinton of Wolfram Research.

P.J. Hinton
Mathematica Programming Group
Wolfram Research, Inc.

----------

Keywords: MATHEMATICA, X, RESOURCES, XRDB, ACTIONS NOT FOUND

----------

Mainpage o Searchform o History o Versions o Categories o Contents

----------

SDB-mathematica3, Copyright SuSE GmbH, Nuremberg, Germany - Version: 08. Sep 1999
SuSE GmbH - Last generated: 07. Oct 1999 17:27:51 by maddin with sdb_gen 1.00.0