[net.emacs] OOPS in Gnu Emacs

hedrick@topaz.RUTGERS.EDU (Charles Hedrick) (07/28/86)

In Gnu Emacs 17.57, on both Pyramid and Sun, we kept seeing "OOPS" on
the screen whenever there was a line wrap on a terminal with the "xn"
property in termcap.  The problem turns out to be in cm.c.  Look for
"fail:".  Change "return c" to "return BIG".  This is in the routine
to do cursor positioning by up and down commands (i.e. not direct
cursor positioning).  There is a case in which we can get to this code
with c not set to anything.  At this point in the cost, we always want
a large cost to be returned, so it is simplest just to return BIG,
instead of worrying about what is in c.

dodelta: 
    if (c == BIG) {		/* caint get thar from here */
fail:
	if (doit)
	    printf ("OOPS");
/* RUTGERS was return c - that fails in case goto fail, since c is not set */
	return BIG;
    }

steiner@topaz.RUTGERS.EDU (Dave Steiner) (07/28/86)

This bug is fixed in 17.58.

ds
-- 

uucp:   ...{harvard, seismo, ut-sally, sri-iu, ihnp4!packard}!topaz!steiner
arpa:   Steiner@RUTGERS.ARPA or Steiner@RED.RUTGERS.EDU