Mail Archives: cygwin/2005/07/14/00:08:09
Hi,
Shaddy Baddah wrote:
> Brian Dessent wrote:
>
>>Maxime Beaudry wrote:
>>
>>
>>
>>>I installed xemacs along with cygwin. I try to start xemacs by
directly by
>>>double clicking on the xemacs-21.4.17.exe file in my windows
explorer. This
>>>starts a dos console window which in turns starts xemacs properly.
>>>
>>>My question is: is there a way to simply open a xemacs window and not the
>>>dos console window when double clicking on the executable? Thanks.
>>
>>
>>Try the 'run' utility in the X-startup-scripts package. The comment at
>>the top of the source pretty much explains it:
Brian was, of course, right on this. The tool works very well.
Shaddy Baddah wrote:
> Actually, there is a definite change in the behaviour of the recently
> released build of xemacs-21.4.17 and its' predecessor xemacs-21.4.15.
[snip]
> I am guessing that there was a specific patch applied on 21.4.15 that
> was missed on 21.4.17 to avert this behaviour. Hope it gets back in,
> else I take drastic action of looking into it and rebuilding from
source :-D
I had a quick look at the xemacs source, and quickly located that the
change is due to a deliberate upstream action. Allow me to record it
here for future reference.
>From the rcs log in xemacs cvs repository:
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/Makefile.in.in,v
Working file: Makefile.in.in
head: 1.116
branch:
locks: strict
access list:
symbolic names:
[snip]
----------------------------
revision 1.114
date: 2005/01/26 03:40:15; author: ben; state: Exp; lines: +5 -4
branches: 1.114.2; 1.114.4;
Puh-raise the lawd!
insert-data-in-exec.c: Need to open everything as binary.
Makefile.in.in: Don't compile executable as Windows (-mwindows) under
Cygwin.
Semi-recent changes to Cygwin's executable-startup handling make
it impossible to access the TTY this way.
Don't use special linker file under Cygwin (cygwin.sc) except
when non-PDUMP (even in this case it is highly questionable); you
get errors like
1 [main] temacs 1364 fhandler_console::fixup_after_exec: error
opening input console handle after exec, errno 13, Win32 error 5
5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error
opening output console handle after exec, errno 13, Win32 error 5
----------------------------
The log describes the same changes as those relevant to this discussion:
$ cvs -d :pserver:cvs AT cvs DOT xemacs DOT org:/pack/xemacscvs diff -U 2 -r
r21-4-15 -r r21-4-17 xemacs/src/Makefile.in.in
Index: xemacs/src/Makefile.in.in
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/Makefile.in.in,v
retrieving revision 1.84.2.3
retrieving revision 1.84.2.6
diff -U2 -r1.84.2.3 -r1.84.2.6
--- xemacs/src/Makefile.in.in 2003/01/15 12:18:00 1.84.2.3
+++ xemacs/src/Makefile.in.in 2005/01/31 02:55:02 1.84.2.6
[snip]
@@ -152,13 +152,14 @@
cppflags = $(CPPFLAGS) -Demacs -I. $(c_switch_all)
cflags = $(CFLAGS) $(cppflags)
-#if defined (WIN32_NATIVE) || defined (CYGWIN)
+#if defined (WIN32_NATIVE)
ldflags = $(LDFLAGS) -mwindows -e _mainCRTStartup $(ld_switch_all)
$(ld_dynamic_link_flags)
-# if defined (CYGWIN)
-ldflags += -Wl,--script=s/cygwin.sc
-# endif
#else
ldflags = $(LDFLAGS) $(ld_switch_all) $(ld_dynamic_link_flags)
#endif
+#if defined (CYGWIN) && !defined (PDUMP)
+ldflags += -Wl,--script=s/cygwin.sc
+#endif
+
#ifdef SOLARIS2
%.o : %.c
IMO, this is a correct change. Brian's suggestion is a good one, and I
recommend it.
Regards,
Shaddy
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -