How do I prevent “delete-next-character” warning messages when running Mathematica under some SuSE Linux distribution?

To quote Wolfram: Some users of the SuSE Linux distribution have indicated that the following stderr dialog box may occur while starting Mathematica:

Warning: Actions not found: delete-next-character

(this may occur multiple times). The cause appears to be a resource setting in the following file, similar to the .Xdefaults file, but is applicable to all users on the system:

/usr/X11R6/lib/X11/Xresources

The problematic lines look like this:

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

You can check to see if this is the problem by starting the Mathematica front end and running the following command in a shell running on the same machine as the X server:

appres XMathematica > /tmp/XMathematica.res

Check the results of this for resources that map delete-next-character() to a particular event. There may be several instances of this.

The workaround is to add a resource setting that counteracts this resource for Mathematica. It may be a set on a per-user basis in ~/.Xdefaults or globally in /usr/X11R6/lib/X11/Xresources. Here is the setting:

[cut here]
!===========================================================================
! XMathematica
!===========================================================================

XMathematica*XmText.translations:
[cut here]

This protects Mathematica from the offending resource and at the same time keeps the resource setting available to other Motif-based applications that do understand the resource setting.

Some users have reported that you may need to use XMathematica*Text.translations: in place of XMathematica*XmText.translations:.

This workaround should be tested by first running xrdb and then launching the front end. The warning messages should no longer appear.