Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!helios.ee.lbl.gov!nosc!humu!uhccux!julian From: julian@uhccux.uhcc.hawaii.edu (Julian Cowley) Newsgroups: gnu.emacs Subject: Re: GNU Emacs 18.54 Message-ID: <3941@uhccux.uhcc.hawaii.edu> Date: 15 May 89 23:56:46 GMT References: <8904270328.AA01399@sugar-bombs.ai.mit.edu> <854@apctrc.UUCP> Distribution: gnu Organization: University of Hawaii at Manoa Lines: 44 In article <854@apctrc.UUCP> zjat02@cra2.UUCP (Jon A. Tankersley) writes: >When I installed the patches I found the >cm.c patch to be a problem. A bigger problem that patch thought. > >Here is the .rej file > >*************** >*** 201,205 **** > */ > >! ntabs = deltax / Wcm.cm_tabwidth; > n2tabs = ntabs + 1; > tabx = (srcx / Wcm.cm_tabwidth + ntabs) * Wcm.cm_tabwidth; >--- 201,205 ---- > */ > >! ntabs = (deltax + srcx % Wcm.cm_tabwidth) / Wcm.cm_tabwidth; > n2tabs = ntabs + 1; > tabx = (srcx / Wcm.cm_tabwidth + ntabs) * Wcm.cm_tabwidth; > > >Trying to find the problem by hand turned up a problem. No ntabs, n2tabs >or tabx = (.....)...; at all in my code anywhere. You may not have been using the 18.53 distribution cm.c. About a month ago I posted a replacment for it to gnu.emacs, and it was probably picked up by someone and tossed into a copy that you received. If you are using the replacment version that I wrote, you should have no problems with it (as far as I know) -- the above bug has been fixed, so you can just ignore the patch (be aware that cm.h and term.c were modified as well.) The replacement also supports backtabs and multi-character cursor movement commands. Sorry about the confusion! I broke the copying rules somewhat by not placing a line in the header of the file indicating it had been changed. Anybody who distributes non-FSF code, either by modifying it themselves or by including changes someone else made, should warn you, too. julian@uhccux.uhcc.hawaii.edu uunet!ucsd!nosc!uhccux!julian julian@uhccux.bitnet