Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!bloom-beacon!think!ames!ucbcad!ucbvax!COLUMBIA.EDU!chris From: chris@COLUMBIA.EDU (Chris Maio) Newsgroups: comp.windows.news Subject: Bug in NeWS support for GNU Emacs Message-ID: <8711242336.AA05776@columbia.edu> Date: Tue, 24-Nov-87 20:50:42 EST Article-I.D.: columbia.8711242336.AA05776 Posted: Tue Nov 24 20:50:42 1987 Date-Received: Sat, 28-Nov-87 07:27:15 EST Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 32 > everything compiles ok and when i start it up i get a window but > everytime i touch a key it says "mark set." Tim, sorry about that. Below is a patch for ps_read_socket() in NeWS.c that should fix it. I was passing a (char *) to a routine that wants an (int *), and unfortunately it didn't show up on the vax because of the byte-order difference. Chris *** /tmp/,RCSt1028176 Tue Nov 24 18:23:04 1987 --- NeWS.c Tue Nov 24 15:42:17 1987 *************** *** 567,573 do { if (feof (PostScriptInput) || ferror (PostScriptInput)) brokenpipe (); ! if (KeyboardInput (&buffer[i])) { if (MetaFlag && metakey) buffer[i] |= 0200; /* add metabit if appropriate */ i++; --- 567,574 ----- do { if (feof (PostScriptInput) || ferror (PostScriptInput)) brokenpipe (); ! if (KeyboardInput (&n)) { ! buffer[i] = n; if (MetaFlag && metakey) buffer[i] |= 0200; /* add metabit if appropriate */ i++;