Recently I have started to split my Emacs windows horizontally. However, when I do this, moving the cursor down frequently raises the following error:
posn-col-row: Wrong type argument: windowp, #<frame buffer/file-name 0x11756e8>
And the cursor will be stuck wherever it is. In the example below, as soon as I hit the dollar sign/newline (I have
whitespace-mode enabled to help myself with diagnosis) I can no longer move the cursor down (although I can always move left and right).
The stranger thing, is that if I have a horizontal split with two windows and the same buffer in each window, then the problem only happens in the window on the right...It seems to only happen when I have
visual-line-mode disabled - but I have disabled it in certain modes precisely because
visual-line-mode seems to do weird things when the window is too narrow, so I would prefer a fix that doesn't involve enabling visual-line-mode. Any suggestions? Thank you!
This problem was occurring on my work computer, and I just tried to recreate it on my home computer. My configuration is synced through github, so I thought everything was exactly the same, but I just remembered that the version of Emacs I am using at work (the one with the problem) is the one from the Ubuntu repositories, while the one I am using at home (which doesn't seem to have a problem) was compiled from source and is a newer version.
Knowing this, I will do some more debugging on Monday when I get back to my work computer, and maybe just get a more recent version of Emacs.