Vin,
Johnathan Harris edited the 21.5 version to remove the second call
to
ShowWindow in May of 2002:
2002-05-06 Jonathan Harris <jonathan(a)xemacs.org>
* frame-msw.c (mswindows_init_frame_3):
Remove obsolete runemacs hack which called ShowWindow() twice.
While I agree with the sentiment that 2 calls to ShowWindow is a hack,
it appears that the second call is necessary in this instance -
restoring the second call to ShowWindow makes the initial frame
appear. This patch does restores mswindow_init_frame_3 to the
definition as it appears in 21.4.
The problem with the second call to ShowWindow() is that it causes
XEmacs to ignore any instructions to start up minimised or maximised, eg
when started from a shortcut where the user has specified "Run:
Minimized" or "Run: Maximized".
If I understand correctly, you're using the cygwin run.exe command to
suppress the console window that would be created if you started cygwin
xemacs normally. The native Windows build of XEmacs doesn't have this
problem - it is built as a "GUI" app and so does not create a console
window on startup. So I suggest that you conditionalise the second call
to ShowWindow() on ifdef CYGWIN.
(Or you could build cygwin XEmacs as a "GUI" app - but then you'd have
to deal with the fact that you sometimes do want to see the output in
the console window. Let me know if you're interested in taking this
route and I'll explain how the native build gets round the problem).
Jonathan.
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-patches