unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: JohnF <john@please.see.sig.for.email.com>
To: help-gnu-emacs@gnu.org
Subject: Re: how to keep cursor stationary when scrolling with mouse
Date: Wed, 19 Nov 2014 03:17:57 +0000 (UTC)	[thread overview]
Message-ID: <m4h255$61g$1@reader1.panix.com> (raw)
In-Reply-To: 8761edmek9.fsf@debian.uxu

Emanuel Berg <embe8573@student.uu.se> wrote:
> JohnF <john@please.see.sig.for.email.com> writes:
> 
>> But it keeps the point/cursor stationary on the
>> screen when scrolling with keyboard keys Page and
>> Arrow Up/Down. That's what I want.
> 
> Are you sure you don't want a keystroke that doesn't
> involve moving your hands from typing position? :)
> Like M-i and M-k for scrolling a single line without
> moving point? Just saying...

Thanks, but I'm happy, comfortable, and accustomed
to keyboard behavior exactly as it's currently configured.

>> But when scrolling with the mouse, either with its
>> wheel or by dragging the right-hand side slider bar,
>> the cursor reverts to default behavior, following
>> the text and jumping back to center when scrolling
>> past the page top/bottom. I've failed to google how
>> to stop that. What can I put in .emacs so that the
>> point/cursor remains stationary on the screen,
>> rather than following the text, when scrolling with
>> the mouse? Thanks,
> 
> I don't know because I don't use the mouse, but I
> scroll without moving point (unless scrolling scrolls
> a whole screen of lines), probably you can use exactly
> the same, binding the mouse to it. But try it
> keyboard-only first, see if you like it.
> 
> Here is the scroll stuff, I have M-i and M-k to
> scroll-up-1 and scroll-down-1:
>   http://user.it.uu.se/~embe8573/conf/emacs-init/scroll.el

Thanks for the interesting stuff to look at.
-- 
John Forkosh  ( mailto:  j@f.com  where j=john and f=forkosh )


  reply	other threads:[~2014-11-19  3:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-18  1:41 how to keep cursor stationary when scrolling with mouse JohnF
2014-11-18  2:24 ` Emanuel Berg
2014-11-19  3:17   ` JohnF [this message]
2014-11-27  3:35     ` Emanuel Berg
2014-11-18 11:30 ` Michael Heerdegen
     [not found] ` <mailman.13943.1416310235.1147.help-gnu-emacs@gnu.org>
2014-11-19  2:59   ` JohnF

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='m4h255$61g$1@reader1.panix.com' \
    --to=john@please.see.sig.for.email.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).