all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kalle Olavi Niemitalo <kon@iki.fi>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: A DOS box starting Emacs (w32)
Date: Wed, 12 Feb 2014 07:06:32 +0200	[thread overview]
Message-ID: <87lhxg9axz.fsf@Niukka.kon.iki.fi> (raw)
In-Reply-To: <CAAeL0SSM6GkS5kzNLeU5v=ut9ZuDYQE_gqyiSDYxpwQjVMv1YQ@mail.gmail.com> (Juanma Barranquero's message of "Wed, 12 Feb 2014 00:46:09 +0100")

Juanma Barranquero <lekktu@gmail.com> writes:

> On Tue, Feb 11, 2014 at 11:53 PM, Angelo Graziosi
> <angelo.graziosi@alice.it> 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.



  parent reply	other threads:[~2014-02-12  5:06 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-11 22:53 A DOS box starting Emacs (w32) Angelo Graziosi
2014-02-11 23:46 ` Juanma Barranquero
2014-02-12  0:11   ` Angelo Graziosi
2014-02-12  1:10     ` Juanma Barranquero
2014-02-12 10:41       ` Angelo Graziosi
2014-02-12  5:06   ` Kalle Olavi Niemitalo [this message]
2014-02-12 10:50     ` Juanma Barranquero
2014-02-12 16:22     ` Eli Zaretskii
2014-02-12  7:37   ` Dani Moncayo
2014-02-12 10:48     ` Juanma Barranquero
2014-02-12 12:30       ` Fabrice Popineau
2014-02-12 16:27         ` Eli Zaretskii
2014-02-12 16:52           ` Juanma Barranquero
2014-02-12 17:38             ` Eli Zaretskii
2014-02-12 17:41               ` Juanma Barranquero
2014-02-12 19:16                 ` Fabrice Popineau
2014-02-12 16:21       ` Eli Zaretskii
2014-02-12 16:48         ` Juanma Barranquero
2014-02-12 16:20     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lhxg9axz.fsf@Niukka.kon.iki.fi \
    --to=kon@iki.fi \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.