Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Part8 - Part9 - Single Page

Top Document: Motif FAQ (Part 9 of 9)
Previous Document: 295) Can I specify a widget in a resource file?
Next Document: 297) Can I have separate translations for shifted and unshifted


[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]

296) 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.



Top Document: Motif FAQ (Part 9 of 9)
Previous Document: 295) Can I specify a widget in a resource file?
Next Document: 297) Can I have separate translations for shifted and unshifted

Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Part8 - Part9 - Single Page


[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
kenton@rahul.net (Ken Lee)

Last Update May 13 2007 @ 00:23 AM