From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eric Eide Newsgroups: gmane.emacs.help Subject: Re: Persisting centered cursor with Scroll Lock key Date: Sat, 08 May 2004 18:03:58 -0600 (MDT) Organization: University of Utah School of Computing Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <8765b63mfr.fsf@emptyhost.emptydomain.de> <87pt9e1zr1.fsf@emptyhost.emptydomain.de> <877jvm1yof.fsf@emptyhost.emptydomain.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084062202 19081 80.91.224.253 (9 May 2004 00:23:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 9 May 2004 00:23:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 09 02:23:17 2004 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 1BMc68-0000K2-00 for ; Sun, 09 May 2004 02:23:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.33) id 1BMc1B-0006ab-0v for geh-help-gnu-emacs@m.gmane.org; Sat, 08 May 2004 20:18:09 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!xmission!news.cc.utah.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: bas.flux.utah.edu Original-X-Trace: coward.ks.cc.utah.edu 1084061038 2191 155.98.60.2 (9 May 2004 00:03:58 GMT) Original-X-Complaints-To: abuse@cc.utah.edu Original-NNTP-Posting-Date: 9 May 2004 00:03:58 GMT User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.1 (Cuyahoga Valley, berkeley-unix) Cancel-Lock: sha1:FJtQJLm0++QNRphDFBJy5ad4KWg= Original-Xref: shelby.stanford.edu gnu.emacs.help:123086 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 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:18373 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18373 "Kai" == Kai Grossjohann writes: Kai> Torsten Bronger writes: >> Yes, C-u 1 and then PgUp/PgDn is what I want to see. Kai> Does this mean that scroll-in-place works after all? Probably. Kai> So what you now need is to define single-line scrolling commands. The comments in the `scroll-in-place.el' file talk about doing this, and give some sample code. Kai> Then you need to rebind keys C-n, C-p and so on to use the Kai> scrolling commands instead of previous-line and next-line, and so Kai> on. Kai> Kai> Then you need to write a function which does this and another Kai> which undoes it, and then bind a command to the scroll-lock key Kai> which calls one or the other function. "This is left as an exercise for the reader." :-). Eric. -- ------------------------------------------------------------------------------- Eric Eide . University of Utah School of Computing http://www.cs.utah.edu/~eeide/ . +1 (801) 585-5512 voice, +1 (801) 581-5843 FAX