Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!ATHENA.MIT.EDU!kit From: kit@ATHENA.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: translations maze Message-ID: <8903302020.AA05242@DORA.MIT.EDU> Date: 30 Mar 89 20:20:21 GMT References: <8903301643.AA03481@rainbow-warrior> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 44 [ Donna Converse writes:] > >I think you need to say which key on the last one. > > :d:insert-char() [ Matt Devin replies] > In fact it is even easier to break. I think (hoping I'm wrong) that the > event-sequence mechanism is somewhat buggy. There is some good news and bad news here. The good news is that the current MIT implemention seems to match the specification which states that this type if thing will work: xedit*Text.translations: #override \n\ , : \n\ : If Event2 is exactly the same as Event3 then the specification is very clear about what happens. If event2 is immediately preceeded by event1 then action1 will be used. If event2 is not immediately preceeded by event1 then action2 will be used. Now the bad news... The specification says nothing about what happens if event3 is a more general case of event2, as in the example given when event2 is "d" and event3 is "". What is currently happening is that action2 is never executed on an event2 that is not immediately preceeded by event1. It seems that this is not so much a bug as a case that was overlooked by the Xt specification. Getting this changed will probabally require a formal change to the specification. Chris D. Peterson MIT X Consortium / Project Athena Net: kit@athena.mit.edu Phone: (617) 253 - 1326 USMail: MIT - Room E40-321 77 Massachusetts Ave. Cambridge, MA 02139