[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A DOS box starting Emacs (w32)

From: Kalle Olavi Niemitalo
Subject: Re: A DOS box starting Emacs (w32)
Date: Wed, 12 Feb 2014 07:06:32 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.51 (gnu/linux)

Juanma Barranquero <address@hidden> writes:

> On Tue, Feb 11, 2014 at 11:53 PM, Angelo Graziosi
> <address@hidden> wrote:
>> But if I add Emacs to the applications bar (mouse-3 on the Emacs icon and
>> then click on "Add this application to the applications bar"), and then I
>> start Emacs from that bar, a DOS box opens behind the Emacs frame.
> Modify the shortcut so it runs runemacs.exe, not emacs.exe.

On MS-Windows 7 or later, emacs.exe could automate this by
setting the System.AppUserModel.RelaunchCommand property on its
windows.  It would have to detect whether the property should
refer to emacs.exe or runemacs.exe.  Because runemacs.c sets
start.wShowWindow = SW_HIDE when it calls CreateProcess,
emacs.exe could perhaps call GetConsoleWindow and
IsWindowVisible, or call GetStartupInfo and check wShowWindow.
Some of the necessary functions don't exist in MS-Windows 9X,
so GetProcAddress would have to be used.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]