unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: August <fusionfive@comhem.se>
Subject: Re: scroll-down and beginning-of-buffer
Date: Fri, 11 Feb 2005 20:20:17 +0100	[thread overview]
Message-ID: <1108149617.5323.7.camel@c83-250-206-179.bredband.comhem.se> (raw)
In-Reply-To: <m3sm439mui.fsf@cisco.com>

On fre, 2005-02-11 at 09:45 -0500, John Russell wrote:
> 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.

You can also try `pc-selection-mode' that makes several motions commands
from the keyboard behave in a more familiar manner.

-- 
August

  reply	other threads:[~2005-02-11 19:20 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 ` scroll-down and beginning-of-buffer John Russell
2005-02-11 19:20   ` August [this message]
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=1108149617.5323.7.camel@c83-250-206-179.bredband.comhem.se \
    --to=fusionfive@comhem.se \
    /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).