From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Lee Newsgroups: gmane.emacs.help Subject: Re: scrolling Date: Fri, 08 Aug 2003 04:55:57 GMT Organization: SBC http://yahoo.sbc.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1060318855 7890 80.91.224.253 (8 Aug 2003 05:00:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2003 05:00:55 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 08 07:01:19 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19kzNP-0005PX-00 for ; Fri, 08 Aug 2003 07:01:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19kzMr-0003vv-It for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Aug 2003 01:00:45 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!in.100proofnews.com!in.100proofnews.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr12.news.prodigy.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:lOE5iz/OWeAUrtnM07+Tdv8AXZw= Original-Lines: 38 Original-NNTP-Posting-Host: 216.62.199.3 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: newssvr12.news.prodigy.com 1060318557 ST000 216.62.199.3 (Fri, 08 Aug 2003 00:55:57 EDT) Original-NNTP-Posting-Date: Fri, 08 Aug 2003 00:55:57 EDT X-UserInfo1: [[PAPDONEJW[STT^BJJNOFXBBZ\LPCXLLBWLOOAFMAVNDQUBLNTC@AWZWDXZXQ[K\FFSKCVM@F_N_DOBWVWG__LG@VVOIPLIGX\\BU_B@\P\PFX\B[APHTWAHDCKJF^NHD[YJAZMCY_CWG[SX\Y]^KC\HSZRWSWKGAY_PC[BQ[BXAS\F\\@DMTLFZFUE@\VL Original-Xref: shelby.stanford.edu gnu.emacs.help:115743 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11662 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11662 >>>> schaecsn writes: schaecsn> 1) Let's assume the cursor is somewhere in the schaecsn> middle of the screen. How can I scroll the screen by 1 schaecsn> line up or down? I use the following: (defun pete-scroll-down-one () (interactive) (scroll-down 1)) (defun pete-scroll-up-one () (interactive) (scroll-up 1)) (global-set-key (kbd "") 'pete-scroll-down-one) (global-set-key (kbd "") 'pete-scroll-up-one) schaecsn> 2) If I'm at the bottom of the screen and I press schaecsn> cursor-down then the screen scrolls by several schaecsn> lines. Google told me to set scroll-step to 1. schaecsn> (setq scroll-step 1) schaecsn> That works several times but then the cursor is suddenly schaecsn> in the middle of the screen. I don't like that. This happens to me too... go to top of large buffer and just hit C-n. Every once in a while the cursor pops to center of buffer and continues down. Hopefully someone here can tell us how to fix that. (require 'scroll-in-place) (setq scroll-step 1) (scroll-bar-mode -1)