Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site l5.uucp Path: utzoo!linus!philabs!cmcl2!seismo!lll-crg!well!l5!gnu From: gnu@l5.uucp (John Gilmore) Newsgroups: net.info-terms Subject: gnuemacs "cs" string confusion resolved (to %i documentation problem) Message-ID: <270@l5.uucp> Date: Fri, 15-Nov-85 14:35:26 EST Article-I.D.: l5.270 Posted: Fri Nov 15 14:35:26 1985 Date-Received: Sun, 17-Nov-85 06:33:58 EST References: <427@mit-eddie.UUCP> Organization: Nebula Consultants in San Francisco Lines: 28 Summary: This msg is copied from net.emacs to net.info-terms. From: rms@mit-prep.arpa (Richard M. Stallman) Subject: termcap Message-ID: <427@mit-eddie.UUCP> Date: 14 Nov 85 06:53:52 GMT I have discovered the cause of the confusions about the `cs' scroll region command. Emacs has been handling %i incorrectly. Its documentation %i increment by one, no output did not tell me it should increment two arguments. Cursor motion was handled by old code I got from chris@maryland so it worked correctly. I designed the arguments to the `cs' string to make the VT100 termcap entry do the correct thing with %i working wrong. The fix to this is: In tparam.c, in function tparam, add the line argp[1] ++; just after the line case 'i': In term.c, in set_scroll_region, change the line tparam (TS_set_scroll_region, buf, start, stop); to tparam (TS_set_scroll_region, buf, start, stop - 1);