From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tamas K Papp Newsgroups: gmane.emacs.help Subject: Re: how to move the contents of the buffer one line up/down? Date: 14 Jul 2008 11:55:44 GMT Message-ID: <6e0t60F4okmbU1@mid.individual.net> References: <6e0qu9F4kpduU2@mid.individual.net> <87lk041y6y.fsf@hubble.informatimago.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1216039333 4567 80.91.229.12 (14 Jul 2008 12:42:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jul 2008 12:42:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 14 14:43:01 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 1KINNn-0003Gw-FK for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jul 2008 14:42:23 +0200 Original-Received: from localhost ([127.0.0.1]:59588 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KINMv-0000SU-B3 for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jul 2008 08:41:29 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-X-Trace: individual.net PCpOID6D9tln8mo04+P9Jg+PvHVHOanvzA4qfaEXOmvXAPe+TS Cancel-Lock: sha1:jcG7qHROeQaopayfjMxDE2zqU30= User-Agent: Pan/0.132 (Waxed in Black) Original-Xref: news.stanford.edu gnu.emacs.help:160195 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:55544 Archived-At: On Mon, 14 Jul 2008 13:51:01 +0200, Pascal J. Bourguignon wrote: > Tamas K Papp writes: > >> Hi, >> >> I know that I can "center" my cursor with C-l. But sometimes it would >> be really useful to do the following: have the contents of the buffer >> move up or down a couple of lines, with the cursor staying in the same >> place. >> >> What function would do that? Then I could bind it to a key. > > scroll-up and scroll-down > > C-u 3 M-x scroll-up RET > > C-u 6 M-x scroll-down RET > > Also, since they're often bound to and you can just type: > > C-3 or C-6 Thanks Peter and Pascal! Sorry for my ignorance, but on most standard PC keyboards, and would be PgUp and PgDown? Tamas