Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!topaz!hedrick From: hedrick@topaz.RUTGERS.EDU (Charles Hedrick) Newsgroups: net.emacs Subject: OOPS in Gnu Emacs Message-ID: <5433@topaz.RUTGERS.EDU> Date: Mon, 28-Jul-86 04:46:36 EDT Article-I.D.: topaz.5433 Posted: Mon Jul 28 04:46:36 1986 Date-Received: Mon, 28-Jul-86 19:18:23 EDT Organization: Rutgers Univ., New Brunswick, N.J. Lines: 19 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; }