Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!steinmetz!moose!mroz From: mroz@moose.steinmetz (peter a mroz) Newsgroups: comp.emacs Subject: Fix for bug in mfe.el forms entry routines for gnu Message-ID: <7966@steinmetz.steinmetz.UUCP> Date: Tue, 24-Nov-87 12:33:29 EST Article-I.D.: steinmet.7966 Posted: Tue Nov 24 12:33:29 1987 Date-Received: Sat, 28-Nov-87 01:16:06 EST Sender: news@steinmetz.steinmetz.UUCP Reply-To: mroz@moose.steinmetz (peter a mroz) Organization: General Electric CRD, Schenectady, NY Lines: 32 A little while ago I posted mfe.el, a set of forms entry routines for GNU Emacs. There's a little bug in it that can be fixed as follows Formerly, in mfe-insert-char, I had line # ----------------------------- 546: (if (= pos pmax) 547: (message 548: "Can't insert characters - at end of field") 549: ; OK to insert - check the type Change this to: 546: (if (= (point) pmax) 547: (message 548: "Can't insert characters - at end of field or field is full") 549: ; OK to insert - check the type This fixes the following bug: If you were in the middle of a field that already had text in it filling out the field, and typed a character, the newline at the end of this line would be deleted. This fix prevents insertion if a field is full. Thanks go to Nathan Hess (nate@cpocd2.intel.com) for pointing this bug out to me. Peter Mroz General Electric | ARPA: mroz@ge-crd.arpa Corporate Research and Development | UUCP: mroz@moose.steinmetz.ge.com PO Box 8, 37-2081 | UUCP: {uunet!}steinmetz!mroz!crd Schenectady, NY 12301 | 518-387-6021