all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
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 18:57:34 +0200	[thread overview]
Message-ID: <47F3BAFE.4030803@gmail.com> (raw)
In-Reply-To: <ydednTT74ZktLG7anZ2dnUVZ_gadnZ2d@sysmatrix.net>

B. T. Raven wrote:
> 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.

cua-mode has the code for this. It is however bound to PgUp/Down.




  reply	other threads:[~2008-04-02 16:57 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 ` make ctrl+v (page-down) move even when near the end of document B. T. Raven
2008-04-02 16:57   ` Lennart Borgman (gmail) [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47F3BAFE.4030803@gmail.com \
    --to=lennart.borgman@gmail.com \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.