From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Ekkehard_G=F6rlach?= Newsgroups: gmane.emacs.help Subject: Re: How to scroll while keeping the position of the point with respect to the text? Date: Wed, 05 Sep 2007 21:33:30 +0200 Organization: Bluewin AG Message-ID: References: <1189019337.916627.259710@57g2000hsv.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1189021349 6975 80.91.229.12 (5 Sep 2007 19:42:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Sep 2007 19:42:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 05 21:42:29 2007 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 1IT0lc-0002IP-Or for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Sep 2007 21:42:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IT0lb-0002EN-5y for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Sep 2007 15:42:23 -0400 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (windows-nt) Cancel-Lock: sha1:ge+8t+gkpsot71qSLrTyNHP5akg= Original-NNTP-Posting-Host: 83.77.215.130 X-Original-NNTP-Posting-Host: 83.77.215.130 Original-X-Trace: news.bluewin.ch 1189020810 83.77.215.130 (5 Sep 2007 21:33:30 +0200) Original-Lines: 21 Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!164.128.36.58!news.ip-plus.net!newsfeed.ip-plus.net!news.bluewin.ch!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:151724 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:47248 Archived-At: Hi, I have (global-set-key [M-up] (lambda() (interactive) (scroll-down 1) (previous-line 1))) (global-set-key [M-down] (lambda() (interactive) (scroll-up 1) (next-line 1))) (global-set-key [S-up] (lambda() (interactive) (scroll-up 1))) (global-set-key [S-down] (lambda() (interactive) (scroll-down 1))) in my .emacs. Thus I could use Shift-up/down to scroll and keep the position of the point wrt the text (Ithink that was what you were looking for) or use M-up/down to scroll the text underneath the point. Ekkehard