Date: Thu, 6 Apr 2000 22:19:09 +0500
Message-Id: <200004061719.WAA02943@midpec.com>
From: Prashant TR
To: djgpp AT delorie DOT com
In-reply-to: <8cebbj$ifi$1@nnrp1.deja.com> (dennis51@my-deja.com)
Subject: Re: Emacs help (was Re: DJGPP for Linux?)
References: <38D40C75 DOT 84380B1B AT bigfoot DOT com> <8cebbj$ifi$1 AT nnrp1 DOT deja DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com
Precedence: bulk
> Please tell me how to solve the following problem with emacs:
>
> If I am using emacs on a 500 line file, and line 250 is in the
> center of the screen, and the curser is on line 250, and I press
> Page Up and then Page Down, I see that line 250 is again at the
> center of the screen, but the curser is now near the top of the
> screen.
>
> What I want, is that after pressing Page Up n times followed by
> pressing Page Down n times, the screen and curser be in
> exactly the same position as before. (I am willing to live
> with this NOT being the case if I press Page Up (or Page Down) so
> many times that I "go off the end of the file".)
>
> Does anyone know how I can get this to work the way I want?
Ok. A much simpler way than pressing PgUp back n times. When you're at your
250th line, press C-@ (Mark beginning of block). Now go *wherever* you want.
When you want to get back to that place, just type C-x-C-x and you'll get back
to the original position. Ain't EMACS cool?