From: John Russell <jorussel@cisco.com>
Subject: Re: scroll-down and beginning-of-buffer
Date: Fri, 11 Feb 2005 09:45:41 -0500 [thread overview]
Message-ID: <m3sm439mui.fsf@cisco.com> (raw)
In-Reply-To: mailman.11706.1105118323.27204.help-gnu-emacs@gnu.org
Paul Raines <raines@nmr.mgh.harvard.edu> writes:
> I am trying to ge the Page Up and Page Down keys to behave like
> they do in almost every other editor out there. Specifically, when
> hitting Page Up repeatedly, you eventually end up with the curson
> on the very first line of the file. Instead, emails stops at some
> random line below and refuses to go any further and just displays
> "beginning of buffer" in the mini-buffer.
>
> I have tried definining the following function:
>
> (defun my-scroll-down (arg)
> "Same as scroll-down except really goes to beginning of file"
> (interactive "P")
> (if (not (call-interactively 'scroll-down))
> (call-interactively 'beginning-of-buffer)))
>
> Which works but has the horrible side effect of reseting the mark
> each time it is used to the region scrolled. How do I stop it
> from doing that? Or is the better way to get what I want?
>
Google for pager.el. It makes pg-up and pg-down make sense. At if
page up and then page down the point returns to the same place.
very nice package.
John
next parent reply other threads:[~2005-02-11 14:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.11706.1105118323.27204.help-gnu-emacs@gnu.org>
2005-02-11 14:45 ` John Russell [this message]
2005-02-11 19:20 ` scroll-down and beginning-of-buffer August
2005-01-07 17:05 Paul Raines
2005-01-07 17:58 ` Eli Zaretskii
[not found] ` <mailman.11719.1105122181.27204.help-gnu-emacs@gnu.org>
2005-01-07 22:01 ` Marco Gidde
2005-01-09 19:12 ` Paul Raines
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3sm439mui.fsf@cisco.com \
--to=jorussel@cisco.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).