This is an annoying problem I've been having for a couple years. I have ubuntu 16.04 installed on an intel PC, and also 18.04 installed on a Windows box under WSL 1. In both cases I am connecting to the ubuntu system with SSH (PuTTY, actually) tunnelling X11, and using Xming as the X server. I used apt-get to install the emacs25 distribution. It works fine except for one annoying problem. When I run emacs, using, for instance
emacs ex1.c &
I can see that the window initially pops up with some reasonable size, but then immediately resizes itself so that it only shows 3 lines of text. I can resize it manually (i.e., with the mouse), and after that it behaves reasonably. I get essentially the same result with
emacs -geometry 80x51 ex1.c &
The initial window is now 80x51, but as before, it immediately resizes itself to a squat 80x3 window. I have no ~/.emacs, and no .Xresources. The behavior is identical if I use emacs -q
or emacs -Q
.
Why is the emacs frame resizing itself? How do I stop it from doing that?