Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!bloom-beacon!think!barmar From: barmar@think.COM (Barry Margolin) Newsgroups: comp.emacs Subject: Re: commands wanted Message-ID: <12138@think.UUCP> Date: Tue, 24-Nov-87 02:19:12 EST Article-I.D.: think.12138 Posted: Tue Nov 24 02:19:12 1987 Date-Received: Fri, 27-Nov-87 01:51:55 EST References: <8711240526.AA17515@EDDIE.MIT.EDU> Sender: usenet@think.UUCP Reply-To: barmar@sauron.UUCP (Barry Margolin) Organization: Thinking Machines Corporation, Cambridge, MA Lines: 32 In article <8711240526.AA17515@EDDIE.MIT.EDU> kautz@allegra.UUCP (Henry Kautz) writes: >Anybody written any of the following commands? Yes, most EMACS implementors have. They are part of the general EMACS command set. I'll describe them in terms of the GNU EMACS command names (you didn't specify what EMACS dialect you are interested in, so I'll assume GNU). >1. move cursor to top of window M-0 M-r (M-r is move-to-window-line, the numeric argument is the 0-relative line number). >2. move cursor to bottom of window M-minus M-r (a negative argument counts from the bottom). >3. scroll window so line cursor is on is at top of window M-0 C-l (a numeric argument to recenter means to move the cursor's line to the specified window line). >4. scroll window so line cursor is on is at bottom of window M-minus C-l (again, a negative arg means from the bottom). --- Barry Margolin Thinking Machines Corp. barmar@think.com seismo!think!barmar