From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.devel Subject: Re: A DOS box starting Emacs (w32) Date: Wed, 12 Feb 2014 12:30:48 +0000 (UTC) Message-ID: References: <52FAA9DA.3030302@alice.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1392208277 13789 80.91.229.3 (12 Feb 2014 12:31:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Feb 2014 12:31:17 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 12 13:31:26 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WDYyM-000810-Ii for ged-emacs-devel@m.gmane.org; Wed, 12 Feb 2014 13:31:26 +0100 Original-Received: from localhost ([::1]:38640 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDYyM-0008TB-30 for ged-emacs-devel@m.gmane.org; Wed, 12 Feb 2014 07:31:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDYyE-0008T4-9r for emacs-devel@gnu.org; Wed, 12 Feb 2014 07:31:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDYy9-0007Cv-5a for emacs-devel@gnu.org; Wed, 12 Feb 2014 07:31:18 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:39842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDYy8-0007Cl-Ur for emacs-devel@gnu.org; Wed, 12 Feb 2014 07:31:13 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WDYy7-0007y9-15 for emacs-devel@gnu.org; Wed, 12 Feb 2014 13:31:11 +0100 Original-Received: from alimantado.supelec.fr ([160.228.100.37]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Feb 2014 13:31:11 +0100 Original-Received: from fabrice.popineau by alimantado.supelec.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Feb 2014 13:31:11 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 39 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 160.228.100.37 (Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:169553 Archived-At: Juanma Barranquero gmail.com> writes: > > On Wed, Feb 12, 2014 at 8:37 AM, Dani Moncayo gmail.com> wrote: > > > AFAIK, what "runemacs.exe" does is to asynchronously invoke > > "emacs.exe" and then close/kill the CMD window. Wouldn't it be > > possible to achieve the same behavior from "emacs.exe"? > > IIRC, it would be possible, but then you would see the console being > opened and then hidden, which is ugly. You could work around it by > setting a shortcut to start Emacs hidden, but that doesn't help when > you run emacs.exe directly from the Start menu, for example. The whole > runemacs/emacs dance is here to avoid that initial "open console / > hide console" ugliness. > > J > AFAIK, there is no clean solution to build an app which is both a console app and a gui app. http://blogs.msdn.com/b/oldnewthing/archive/2009/01/01/9259142.aspx Anyway, if you dare to use it, you can try my own binaries for Emacs-W64 : http://semantic.supelec.fr/popineau/programming-emacs.html#sec-2 There is a version of emacsclient borrowed from EmacsW32 which is more friendly than the pair runemacs/emacs . Basically, emacsclient is used to launch emacs and no console show off. Fabrice >