unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Emacs <Help-gnu-emacs@gnu.org>
Subject: Re: Pageup/down with fixed cursor position
Date: Fri, 10 Mar 2017 16:51:58 +0000	[thread overview]
Message-ID: <CAFyQvY3gUCMyDRtMdd4rSXJ-=gHwaSEHcnT-onb24Yv8+2wYeQ@mail.gmail.com> (raw)
In-Reply-To: <20170310164827.GP2502@mail.akwebsoft.com>

Try setting scroll-preserve-screen-position to t.

(I really think that should be the default.)

On Fri, Mar 10, 2017 at 11:49 AM Tim Johnson <tim@akwebsoft.com> wrote:

> GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
> Ubuntu 14.04
>
> I'd like to retain my cursor position (when possible) relative to
> top/bottom of window when using C-v and M-v
>
> I'm unable to deduce such a method from the documentation for
> 'scroll-up-command and 'scroll-down-command
>
> Any ideas are welcome. Keywords are probably all I need.
>
> thanks
> --
> Tim
> http://www.akwebsoft.com, http://www.tj49.com
>
> --

Kaushal Modi


  reply	other threads:[~2017-03-10 16:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-10 16:48 Pageup/down with fixed cursor position Tim Johnson
2017-03-10 16:51 ` Kaushal Modi [this message]
2017-03-10 18:38   ` Tim Johnson

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='CAFyQvY3gUCMyDRtMdd4rSXJ-=gHwaSEHcnT-onb24Yv8+2wYeQ@mail.gmail.com' \
    --to=kaushal.modi@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.
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).