[comp.windows.x] Suppressing X Toolkit Warnings

montnaro@spyder.crd.ge.com (Skip Montanaro) (06/10/91)

When I override the translations in a Motif Text widget using
XtAugmentTranslations, I get the following two warning messages:

  X Toolkit Warning: Overriding earlier translation manager actions
  X Toolkit Warning: Previous entry was:  Meta<KeyPress>D: delete-next-word()
  X Toolkit Warning: New actions are: kill-next-word()

  X Toolkit Warning: Overriding earlier translation manager actions
  X Toolkit Warning: Previous entry was:  Meta<KeyPress>H: delete-previous-word()
  X Toolkit Warning: New actions are: kill-previous-word()

Is there some way to suppress the message besides changing my translations,
wiping out everything first using XtOverrideTranslations, or redirecting
stderr to /dev/null? It is not at all clear to me from the Intrinsics manual
(reading what there is about establishing error handlers and such) how I
should go about suppressing this one error.

Thx,

--
Skip (montanaro@crdgw1.ge.com)

swick@athena.mit.EDU (Ralph Swick) (06/10/91)

    When I override the translations in a Motif Text widget using
    XtAugmentTranslations, I get the following two warning messages:

      X Toolkit Warning: Overriding earlier translation manager actions
      X Toolkit Warning: Previous entry was:  Meta<KeyPress>D: delete-next-word()
      X Toolkit Warning: New actions are: kill-next-word()

      X Toolkit Warning: Overriding earlier translation manager actions
      X Toolkit Warning: Previous entry was:  Meta<KeyPress>H: delete-previous-word()
      X Toolkit Warning: New actions are: kill-previous-word()

    Is there some way to suppress the message besides changing my translations,

Yes there is, but you probably don't want to.  These messages (should)
occur only when parsing a translation table that contains duplicate
lefthand sides.  I.e. you have a single translation specification
that contains two lines specifying actions for 'Meta<KeyPress>D' and
two specifying actions for 'Meta<KeyPress>H' or their functional equivalent.

XtAugmentTranslations should never produce this warning.