dce@smsc.sony.com (David Elliott) (09/18/90)
I have an application that contains a list on a viewport. I set the default translations in the app-defaults file as follows: *translations: #override \ <Btn2Down>: rescan() \n\ <Btn3Down>: show(biff) hide(list) This works just fine unless I add the following to my ~/.Xdefaults file: xmp*translations: #override \ <Key>c: userCommand() This causes the translations in the app-defaults file to be completely ignored. What am I doing wrong here? -- ...David Elliott ...dce@smsc.sony.com | ...!{uunet,mips}!sonyusa!dce ...(408)944-4073 ...Krusty says: Give a hoot, read a book!
pete@iris49.UUCP (Pete Ware) (09/18/90)
dce> I set the default translations in the app-defaults file as follows: ... dce> This works just fine unless I add the following to my ~/.Xdefaults dce> file: dce> xmp*translations: #override \ <Key>c: userCommand() dce> This causes the translations in the app-defaults file to be dce> completely ignored. You've been caught by two different mechanisms. When the resource "translations" is looked up only one of the two is found. The "#override" gets interpreted by the string->translation converter (which only sees one or the other). You need to manually merge the two translations in your ~/.Xdefaults: xmp*translations: #override \ <Btn2Down>: rescan() \n\ <Btn3Down>: show(biff) hide(list)\n\ <Key>c: userCommand() --pete Pete Ware / Biosym / San Diego CA / (619) 546-5532 uucp: scripps.edu!bioc1!pete Internet: bioc1!pete@scripps.edu