From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris McMahan Newsgroups: gmane.emacs.help Subject: Re: How do you scroll the screen without moving the cursor ? (theC-E and C-Y keys in vi) Date: Fri, 03 Oct 2008 11:31:00 -0400 Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: <7sod21hf0r.fsf@one.dot.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1223048484 7829 80.91.229.12 (3 Oct 2008 15:41:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Oct 2008 15:41:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 03 17:42:20 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KlmnK-0005v9-SE for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Oct 2008 17:42:19 +0200 Original-Received: from localhost ([127.0.0.1]:39439 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KlmmH-0003aO-Pm for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Oct 2008 11:41:13 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!news-out.readnews.com!transit4.readnews.com!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 82 Original-NNTP-Posting-Host: panix5.panix.com Original-X-Trace: reader1.panix.com 1223047843 24796 166.84.1.5 (3 Oct 2008 15:30:43 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Fri, 3 Oct 2008 15:30:43 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) Cancel-Lock: sha1:APQX9vyqGqaX3MBumI+a204KbnQ= X-Original-Bytes: 3417 Original-Xref: news.stanford.edu gnu.emacs.help:162998 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58338 Archived-At: If that's not what you have in mind, I've been using these for some time. They keep the cursor in place and move the text underneath it. (defun scroll-down-in-place (n) (interactive "p") (previous-line n) (scroll-down n)) (defun scroll-up-in-place (n) (interactive "p") (next-line n) (scroll-up n)) (global-set-key "\M-n" 'scroll-up-in-place) (global-set-key "\M-p" 'scroll-down-in-place) - Chris "Parker, Matthew" writes: > This might not be the most elegant... but it works... and I think it is what you have in mind... > > Add these to .emacs, and try Control-Alt-n or p > > ;; Navigation Functions > (defun scroll-up-by-one-line() > "scroll ahead one line at a time" > (interactive) > (scroll-up 1)) > > > (defun scroll-down-by-one-line() > "scroll ahead one line at a time" > (interactive) > (scroll-down 1)) > > ;; key bindings > > (global-set-key "\C-\M-n" 'scroll-up-by-one-line) > (global-set-key "\C-\M-p" 'scroll-down-by-one-line) > > > Matthew Parker > > SEI | 1 Freedom Valley Drive | Oaks, PA 19456 | p: 610-676-1279 | f: 484-676-1279 | www.seic.com > > -----Original Message----- > From: help-gnu-emacs-bounces+mparker=seic.com@gnu.org [mailto:help-gnu-emacs-bounces+mparker=seic.com@gnu.org] On Behalf Of zoltan > Sent: Friday, October 03, 2008 2:43 AM > To: help-gnu-emacs@gnu.org > Subject: Re: How do you scroll the screen without moving the cursor ? (theC-E and C-Y keys in vi) > > On Oct 3, 7:46 am, Livin Stephen wrote: >> On Oct 3, 3:11 am, "David Lam" wrote: >> >> >... >> > i saw this...http://www.wlindley.com/gnu/vi and in the first two rows >> > theres no listed equivalent >> > ... >> >> David, >>  C-v is how you scroll one-page-at-a-time, so with numerical arguments >> ( "C-u 1" [ or "Cu -1" ] ), >> here is how I would do it: >> >> C-u 1 C-v for "up", and >> C-u -1 C-v for "down" . >> >> I don't know *any* lisp, >>  so if I found myself wanting to do this a lot, >>  I would probably create a macro and setup a key-binding. > > You can also use M-v to scroll up. > And C-M-v to scroll down the next buffer > > -- (. .) =ooO=(_)=Ooo===================================== Chris McMahan | first_initiallastname@one.dot.net =================================================