unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#11405: emacsclientw.exe compiled by VC++ 2010 express is a console program
@ 2012-05-04 14:53 Du Yanning
  2012-05-04 15:09 ` Eli Zaretskii
  2012-05-29 16:18 ` Eli Zaretskii
  0 siblings, 2 replies; 5+ messages in thread
From: Du Yanning @ 2012-05-04 14:53 UTC (permalink / raw)
  To: 11405

[-- Attachment #1: Type: text/plain, Size: 263 bytes --]

emacsclientw.exe should be a GUI program, rather than a console program.
When it is run with no arguments, it should show a message box.
However, emacsclientw.exe compiled by VC++ 2010 express is a console
program.
It shows a black console window when it starts.

[-- Attachment #2: Type: text/html, Size: 273 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#11405: emacsclientw.exe compiled by VC++ 2010 express is a console program
  2012-05-04 14:53 bug#11405: emacsclientw.exe compiled by VC++ 2010 express is a console program Du Yanning
@ 2012-05-04 15:09 ` Eli Zaretskii
  2012-05-06 15:45   ` Jason Rumney
  2012-05-29 16:18 ` Eli Zaretskii
  1 sibling, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2012-05-04 15:09 UTC (permalink / raw)
  To: Du Yanning; +Cc: 11405

> Date: Fri, 4 May 2012 22:53:31 +0800
> From: Du Yanning <duyanning@gmail.com>
> 
> emacsclientw.exe should be a GUI program, rather than a console program.

And it is.

> When it is run with no arguments, it should show a message box.

And it does.

> However, emacsclientw.exe compiled by VC++ 2010 express is a console
> program.
> It shows a black console window when it starts.

Then something is wrong in the MSVC-specific parts of the makefile's.
When compiled with MinGW, emacsclientw invoked without arguments shows
a GUI dialog with an error message and an OK button.

If you could find out what is wrong in the MSVC build, please tell.
Most (if not all) people who track Emacs development on MS-Windows use
MinGW, so we don't have MSVC to try that.






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#11405: emacsclientw.exe compiled by VC++ 2010 express is a console program
  2012-05-04 15:09 ` Eli Zaretskii
@ 2012-05-06 15:45   ` Jason Rumney
  2012-05-06 16:45     ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Jason Rumney @ 2012-05-06 15:45 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 11405, Du Yanning

Eli Zaretskii <eliz@gnu.org> writes:

>> However, emacsclientw.exe compiled by VC++ 2010 express is a console
>> program.
>> It shows a black console window when it starts.
>
> Then something is wrong in the MSVC-specific parts of the makefile's.
> When compiled with MinGW, emacsclientw invoked without arguments shows
> a GUI dialog with an error message and an OK button.

MSVC does not support the -mwindows linker flag for making a program
into a GUI program.  It only supports changing the source code to remove
the main function and put a WinMain function in its place.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#11405: emacsclientw.exe compiled by VC++ 2010 express is a console program
  2012-05-06 15:45   ` Jason Rumney
@ 2012-05-06 16:45     ` Eli Zaretskii
  0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2012-05-06 16:45 UTC (permalink / raw)
  To: Jason Rumney; +Cc: 11405, duyanning

> From: Jason Rumney <jasonr@gnu.org>
> Cc: Du Yanning <duyanning@gmail.com>,  11405@debbugs.gnu.org
> Date: Sun, 06 May 2012 23:45:04 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> However, emacsclientw.exe compiled by VC++ 2010 express is a console
> >> program.
> >> It shows a black console window when it starts.
> >
> > Then something is wrong in the MSVC-specific parts of the makefile's.
> > When compiled with MinGW, emacsclientw invoked without arguments shows
> > a GUI dialog with an error message and an OK button.
> 
> MSVC does not support the -mwindows linker flag for making a program
> into a GUI program.  It only supports changing the source code to remove
> the main function and put a WinMain function in its place.

Thanks for the info.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#11405: emacsclientw.exe compiled by VC++ 2010 express is a console program
  2012-05-04 14:53 bug#11405: emacsclientw.exe compiled by VC++ 2010 express is a console program Du Yanning
  2012-05-04 15:09 ` Eli Zaretskii
@ 2012-05-29 16:18 ` Eli Zaretskii
  1 sibling, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2012-05-29 16:18 UTC (permalink / raw)
  To: Du Yanning; +Cc: 11405-done

> Date: Fri, 4 May 2012 22:53:31 +0800
> From: Du Yanning <duyanning@gmail.com>
> 
> emacsclientw.exe should be a GUI program, rather than a console program.
> When it is run with no arguments, it should show a message box.
> However, emacsclientw.exe compiled by VC++ 2010 express is a console
> program.
> It shows a black console window when it starts.

With help from Fabrice Popineau, I fixed this in revision 108022 on
the emacs-24 branch, and I'm closing the bug.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-05-29 16:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-04 14:53 bug#11405: emacsclientw.exe compiled by VC++ 2010 express is a console program Du Yanning
2012-05-04 15:09 ` Eli Zaretskii
2012-05-06 15:45   ` Jason Rumney
2012-05-06 16:45     ` Eli Zaretskii
2012-05-29 16:18 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).