Path: utzoo!utgpu!watmath!clyde!bellcore!rutgers!gatech!purdue!decwrl!sun!pitstop!sundc!seismo!uunet!munnari!otc!metro!ipso!lucretia!tim From: tim@lucretia.esa.oz (Tim Bunce) Newsgroups: comp.emacs Subject: Re: Can scrolling be changed? Message-ID: <133@lucretia.esa.oz> Date: 21 Nov 88 02:42:48 GMT References: <392@megatek.UUCP> <3097@mipos3.intel.com> <2120@bucsb.UUCP> Reply-To: tim@lucretia.ips.oz (PUT YOUR NAME HERE) Organization: esa Lines: 33 In article <3097@mipos3.intel.com> woodstock@sc.intel.com (Nate Hess) writes: >In article <392@megatek.UUCP>, hollen@spot (Dion Hollenbeck) writes: >>Can the method of scrolling be changed in GNU-emacs? It currently >>repaints the entire screen and moves the cursor to the center >>when scrolling up or down is needed. Can it be made to scroll >>one line at a time up or down like a regular terminal? >... >So, just do a >(setq scroll-step 1) >to get what you want. >... As an aside, VAXTPU on VMS machines has a very flexible approach to scrolling that the GNU project may like to emulate. Under TPU you can not only specify by how much the screen should scroll (up or down) but also at what point a cursor motion will trigger a scroll. For example, you can specify that the window should scroll down by one line when ever the cursor tries to move onto the top line of the window and similarly for scrolling down. (This is my favourite set-up -- it means that you can always some of the context of the line that you are on.) This approach also allows you to keep the cursor centered in the window, or on the 2nd line or last line or ... I have not looked at the emacs code but I sure someone could produce and publish a simple patch. What do you think? -- Tim Bunce: tim@attila.oz.AU (tim%attila.oz.AU@UUNET.UU.NET) --------- {uunet,mcvax,ukc,nttlab}!munnari!attila.oz!tim JANET: (POST) tim%au.oz.attila@EAN-RELAY (MAIL) EAN%"tim@au.oz.attila"