At some unidentifiable point of time (can be in a few days, can be in a few hours) something clicks in Emacs and it starts automatically recentering my cursor position. Like I move my cursor somewhere and in a few seconds the buffer is shifted so that cursor is now vertically in the middle of the window. Once this happens, it persists in all buffers until I restart Emacs.
I can't figure what triggers this, but I noticed that the probability of of this happening increases if I use GUI commands like customize-group
, customize-variable
etc.
I thought that maybe my smooth scrolling setup was to blame. I used to have this in my init.el
:
(setq-default redisplay-dont-pause t
scroll-margin 1
scroll-step 1
auto-window-vscroll nil
scroll-conservatively 10000
scroll-preserve-screen-position 1)
Now I replaced that with smooth-scrolling package and the mentioned behavior still occurs.
Can anyone help with this? I run Emacs as a daemon, and being forced to restart it because of such silly issue enrages me.