X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:references :mime-version:content-type; q=dns; s=default; b=WbCydravucOrxvaW M7LO9mUmysw6BZnGgjDleZrmni0/1DEkIIfSKOGZVuloLURQ52edQwX4w4+Gdsw7 tYJDPTuvgmg/z8SvlR/CUSUU8qyriuQ13GgPXLZLZC+oG6WNEr8DuvztLfA4JFUD zVcluGoKhq0dyqm9SOsYMSSRuyc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:references :mime-version:content-type; s=default; bh=cjjEeztGttpq0U5qnxrQPA SIFO8=; b=dsdWNsn0n5ZXbeFWamcr7s+/dmMKiXNiArZDsihioEZ8zpvW2jCVZE hNi0JOYamnZUNz/FkOop3KtfSVblXeFPQpXje9KDK7ZEMSdMjChGu0zK/Yswef3X qGIkp/gPsDTFhKXirAgOA2erxun+D+4JieZ9KOh2wnqIdwwazXbkA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,FSL_HELO_BARE_IP_2,KAM_OTHER_BAD_TLD,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 spammy=UD:work, defunwork, defun.work, UD:defun.work X-HELO: plane.gmane.org To: cygwin AT cygwin DOT com From: Oleksandr Gavenko Subject: Re: Is it possible to hide emacs-w32 console window? Date: Sun, 29 May 2016 15:43:21 +0300 Lines: 48 Message-ID: <87d1o52fx2.fsf@gavenkoa.example.com> References: <87pos53n6s DOT fsf AT gavenkoa DOT example DOT com> <463b9a2b-cad4-5fe7-f175-1a723c0bcf63 AT cornell DOT edu> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-IsSubscribed: yes On 2016-05-29, Ken Brown wrote: > On 5/28/2016 5:08 PM, Oleksandr Gavenko wrote: >> emacs-w32 starts console window and that useless window disturbs during task >> switching (by Alt+TAB) and take space on TaskBar. >> >> Is it possible to hide emacs-w32 console window? > > Sorry, I don't know what console window you're talking about. Exactly how do > you start emacs-w32? I start it by typing 'emacs-w32 &' in a Cygwin terminal > (mintty), and there's no console window. > Sorry I forgot to add this detail. I use Win+R emacs-w32 ENTER. If I start from terminal (cmd.exe or mintty) it works as in your case. But otherwise "ConsoleWindowClass" (from spy++) window is opened (like cmd.exe but without working prompt) along with regular Emacs windows. Closing that window also closes Emacs. I try: #include int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR lpCmdLine, INT nCmdShow) { MessageBoxW(NULL, L"Hello", L"Ok", MB_OK); return 0; } with: gcc -Wl,--subsystem,windows -o mb.exe mb.c and on: Win+R C:\home\my\tmp\mb.exe ENTER I don't see console window. I don't know if it is possible to link emacs-w32 with --subsystem=windows. mintty.exe has dependency on cygwin1.dll and does not bring up cmd-like console along with xterm console. -- http://defun.work/ -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple