Parent document is top of "Motif FAQ (Part 9 of 9)"
Previous document is "300) Can I specify a widget in a resource file?"
Next document is "302) Where can I get the PanHandler code?"

301) Why are only some of my translations are being installed? I

have a translation table like the following, but only the first ones are
getting installed and the rest are ignored.

 *Text.translations:    #override \
     Ctrl<Key>a:    beginning-of-line() \n\
     Ctrl<Key>e:    end-of-line() \n\
     Ctrl<Key>f:    forward-character() \n\

Answer:  Most likely, you have a space at the end of one of the lines (the
first in this case).

     Ctrl<Key>a:    beginning-of-line() \n\
                                           ^ space here

The second backslash in each line is there to protect the real newline
character and so you must not follow it with anything other than the newline
itself. Otherwise it acts as the end of the resource definition and the
remaining lines are not added.

Parent document is top of "Motif FAQ (Part 9 of 9)"
Previous document is "300) Can I specify a widget in a resource file?"
Next document is "302) Where can I get the PanHandler code?"