[comp.windows.news] Bug in NeWS support for GNU Emacs

chris@COLUMBIA.EDU (Chris Maio) (11/25/87)

> 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++;