I am in macOS Sierra using Emacs v25.1 (9.0).
When I scroll using my mouse, the cursor moves to the page I scroll to. However, I want to cursor to stay where it was prior to me starting the scrolling.
So far, I've not had any luck with many of the suggestions posted online (including https://superuser.com/questions/527356/dont-change-the-cursor-position-when-scrolling-in-emacs, including putting in my ~/.emacs the
(setq scroll-preserve-screen-position 1)
According to one post ((Ctrl + up/down)-style scrolling in Emacs), Emacs always wants cursor to be visible, however this behavior is modifiable with some coding (I'm afraid I am not good in lisp). I wonder if anyone knows of such a program.
I am currently using workaround (suggested in the post above) which is to place a mark with C-SPC C-SPC and then use C-u C-SPC when you want to return where you were.