Xemacs hangs while repainting frame