unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "B. T. Raven" <nihil@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: make ctrl+v (page-down) move even when near the end of document
Date: Wed, 02 Apr 2008 10:17:57 -0600	[thread overview]
Message-ID: <ydednTT74ZktLG7anZ2dnUVZ_gadnZ2d@sysmatrix.net> (raw)
In-Reply-To: <mailman.9543.1206720440.18990.help-gnu-emacs@gnu.org>

Pavol Murin wrote:
> hello fellow emacs users,
>  I would like to make ctrl+v like page-down (and page-up) do in other
> applications when near the beginning or end of the document. This
> means that when the point cannot move by a full page, it moves to the
> first or last position in the document. I can program it in elisp, but
> there might be a simpler solution (maybe a different function to
> bind)?
> 
>  thanks, muro
> 
> 

The pertinent code that would have to be hacked is in window.c and the 
only other candidate I see is the variable next-screen-context-lines, 
also in window.c  Maybe if you can make a good case for the usefulness 
of this behavior, someone will change the code for you. Out of 
curiosity, why do you care if the cursor is exactly at top or bottom of 
buffer as long as you can see the text there. Immediately after the last 
M-v or C-v you can M-< or M-> if you need extreme cursor movement.


Ed


       reply	other threads:[~2008-04-02 16:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.9543.1206720440.18990.help-gnu-emacs@gnu.org>
2008-04-02 16:17 ` B. T. Raven [this message]
2008-04-02 16:57   ` make ctrl+v (page-down) move even when near the end of document Lennart Borgman (gmail)
2008-04-03  1:42 ` Jim Diamond
2008-04-03  8:30 Pavol Murin
2008-04-03 13:56 ` Lennart Borgman (gmail)
  -- strict thread matches above, loose matches on Subject: below --
2008-03-28 15:57 Pavol Murin

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=ydednTT74ZktLG7anZ2dnUVZ_gadnZ2d@sysmatrix.net \
    --to=nihil@nihilo.net \
    --cc=help-gnu-emacs@gnu.org \
    /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).