GNU bug report logs - #8268
Windows Emacs Console persists while running running emacs.exe.

Previous Next

Package: emacs;

Reported by: "Nicholas \"Indy\" Ray" <arelius <at> gmail.com>

Date: Thu, 17 Mar 2011 04:06:02 UTC

Severity: wishlist

Tags: wontfix

Merged with 1849

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Nicholas \"Indy\" Ray" <arelius <at> gmail.com>
To: emacs-pretest-bug <at> gnu.org
Subject: Windows Emacs Console persists while running running emacs.exe.
Date: Wed, 16 Mar 2011 20:42:56 -0700
[Message part 1 (text/plain, inline)]
This seems to be related to bug #1849, but perhaps never properly fixed.

Anyways, when opening emacs from Emacs.exe, which is difficult to not do in
Windows 7 with pinning to the task bar, Emacs will open with an unneeded
console window that cannot be destroyed.

This seems likely due to the fact that Emacs is spawned as a console
application when run in this manner.  However, I think there is a simple fix
that doesn't cause problems when the program is run as a console app.

By calling the FreeConsole win32 function when Emacs initializes it's GUI
this should kill any os spawned console windows, had they not been opened
separately.

See:
http://msdn.microsoft.com/en-us/library/ms683150%28v=vs.85%29.aspx

I've used this function to great effect in other applications, and am
confident it'd work. I'd have fixed it and created a patch myself, but I've
spent the last few hours trying to get Emacs to build on this weird setup I
have here.

Indy
[Message part 2 (text/html, inline)]

This bug report was last modified 3 years and 265 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.