all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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 02:59:47 +0000 (UTC)	[thread overview]
Message-ID: <m4h133$3ta$1@reader1.panix.com> (raw)
In-Reply-To: mailman.13943.1416310235.1147.help-gnu-emacs@gnu.org

Michael Heerdegen <michael_heerdegen@web.de> wrote:
> JohnF <john@please.see.sig.for.email.com> writes:
>>     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,
> 
> AFAIK `centered-cursor-mode' makes Emacs behave like that:
>   http://www.emacswiki.org/emacs/centered-cursor-mode.el
> Michael.

Thanks, but that's an awful lot of elisp. I'll probably just let
emacs have its own way rather than try to import all that stuff.
I was hoping for something more like
  (setq mouse-wheel-follow-mouse 't)
But I can't google anything like it that does what I want.
Right now, I've got it working okay for keyboard input, i.e.,
     up/down arrow: Cursor moves up/down one line per keypress
         and text remains stationary. When cursor reaches top/bottom
         of the window, text scrolls one line up/down per corresponding
         keypress while cursor remains stationary at top/bottom.
     page up/down: text scrolls one page up/down while cusor remains
         stationary at all times.
What I want for mouse wheel scroll or for mouse dragging slider bar
is the same as for page up/down, i.e., text scrolls while cursor
remains stationary at all times. But what I'm getting is
     for both wheel and slider bar: Cursor moves along with text.
         When cursor tries to scroll above top of window, it jumps
         to 12th line down from top. Ditto when cursor tries to
         scroll below bottom of window, it jumps all the way back
         to 12th line from top.
-- 
John Forkosh  ( mailto:  j@f.com  where j=john and f=forkosh )


      parent reply	other threads:[~2014-11-19  2:59 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
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 [this message]

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='m4h133$3ta$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.
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.