Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!caip!clyde!burl!ulysses!mhuxr!mhuxt!houxm!ihnp4!inuxc!pur-ee!j.cc.purdue.edu!h.cc.purdue.edu!pur-phy!newton.physics.purdue.edu!wwc From: wwc@newton.physics.purdue.edu.ARPA (William W. Carlson) Newsgroups: net.emacs Subject: uEmacs 3.7 display bug Message-ID: <466@newton.physics.purdue.edu.ARPA> Date: Mon, 8-Sep-86 09:37:43 EDT Article-I.D.: newton.466 Posted: Mon Sep 8 09:37:43 1986 Date-Received: Tue, 9-Sep-86 06:22:58 EDT Distribution: net Organization: Physics Dept., Purdue Univ., W. Lafayette, IN Lines: 37 There is a minor bug in display.c which causes certain lines to be continually "updateline"ed even though they do not change. This in turn causes excessive calls to typeahead(), which on a BSD system is rather slow. The fix simply resets the line changed flag, as it is reset at the bottom of updateline(). This bug does not effect the function of uEmacs, just its performance. Here is the diff -c ------ *** display.c.old Sun Sep 7 08:27:33 1986 --- display.c Mon Sep 8 08:16:19 1986 *************** *** 705,713 * be hard operations that do a lot of update, so I don't really care. */ /* if both lines are the same, no update needs to be done */ ! if (cp1 == &vp1->v_text[term.t_ncol]) return(TRUE); /* find out if there is a match on the right */ nbflag = FALSE; --- 705,714 ----- * be hard operations that do a lot of update, so I don't really care. */ /* if both lines are the same, no update needs to be done */ ! if (cp1 == &vp1->v_text[term.t_ncol]) { ! vp1->v_flag &= ~VFCHG; /* flag this line is changed */ return(TRUE); + } /* find out if there is a match on the right */ nbflag = FALSE; ------- Bill Carlson wwc@ec.ecn.purdue.edu ihnp4!pur-ee!wwc