From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: Minor suggestion for emacsclientw (MS windows specific) Date: Thu, 18 Jan 2007 15:53:52 +0100 Message-ID: <45AF8A00.8020101@gmail.com> References: <45AF3AF5.3090905@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1169132093 28921 80.91.229.12 (18 Jan 2007 14:54:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Jan 2007 14:54:53 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 18 15:54:48 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H7Yf0-00020J-9u for ged-emacs-devel@m.gmane.org; Thu, 18 Jan 2007 15:54:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7Yf1-0002NF-2j for ged-emacs-devel@m.gmane.org; Thu, 18 Jan 2007 09:54:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H7Yem-0002Mz-DB for emacs-devel@gnu.org; Thu, 18 Jan 2007 09:54:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H7Yek-0002MM-L8 for emacs-devel@gnu.org; Thu, 18 Jan 2007 09:54:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7Yek-0002M6-DJ for emacs-devel@gnu.org; Thu, 18 Jan 2007 09:54:22 -0500 Original-Received: from [80.76.149.213] (helo=ch-smtp02.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H7Yee-0006WN-TR; Thu, 18 Jan 2007 09:54:17 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:65393 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1H7Yec-00057O-9B; Thu, 18 Jan 2007 15:54:15 +0100 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Original-To: Jason Rumney In-Reply-To: <45AF3AF5.3090905@gnu.org> X-Antivirus: avast! (VPS 0703-3, 2007-01-17), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1H7Yec-00057O-9B. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1H7Yec-00057O-9B 6f1e7a4940cb0e04781b6aa07c2e72fd X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:65276 Archived-At: Jason Rumney wrote: > dhruva wrote: >> When I associate file extensions to emacsclientw.exe and double click >> on the file in the explorer, the command shell window pops up and >> disappears > What compiler are you using? There shouldn't be command shell window, as > we are using a compiler option to create a windowed application. But > maybe it does not work on all versions of gcc, or on msvc. > >> IMHO: >> 1. emacsclientw.exe should never wait (default is "-n") > > Waiting is required for many applications, and taking care of 2 will > eliminate the remaining reason why you might want emacsclient to > disappear immediately. So I don't think there is any good reason to make > this the default. > >> 2. The code should have WinMain() instead of main() as this will >> eliminate the initial console window from popping up. > > The compiler should take care of that. See above. Please notice also that I have written a new version of emacsclient(w) that does use a WinMain function but for a different purpose (feedback to the user). This version is available as part of the patched Emacs+EmacsW32 download, see http://ourcomments.org/cgi-bin/emacsw32-dl-latest.pl