From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 87197 invoked by alias); 29 May 2016 12:43:43 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 87189 invoked by uid 89); 29 May 2016 12:43:42 -0000 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 Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sun, 29 May 2016 12:43:32 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b7040-0005VK-4o for cygwin@cygwin.com; Sun, 29 May 2016 14:43:28 +0200 Received: from 46.118.53.144 ([46.118.53.144]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 29 May 2016 14:43:28 +0200 Received: from gavenkoa by 46.118.53.144 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 29 May 2016 14:43:28 +0200 To: cygwin@cygwin.com From: Oleksandr Gavenko Subject: Re: Is it possible to hide emacs-w32 console window? Date: Sun, 29 May 2016 14:05:00 -0000 Message-ID: <87d1o52fx2.fsf@gavenkoa.example.com> References: <87pos53n6s.fsf@gavenkoa.example.com> <463b9a2b-cad4-5fe7-f175-1a723c0bcf63@cornell.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 X-SW-Source: 2016-05/txt/msg00376.txt.bz2 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