From: Eli Zaretskii <eliz@gnu.org>
To: Dani Moncayo <dmoncayo@gmail.com>
Cc: lekktu@gmail.com, angelo.graziosi@alice.it, emacs-devel@gnu.org
Subject: Re: A DOS box starting Emacs (w32)
Date: Wed, 12 Feb 2014 18:20:10 +0200 [thread overview]
Message-ID: <83txc4s3ph.fsf@gnu.org> (raw)
In-Reply-To: <CAH8Pv0jr3DzFmfk93wPLDnd1y4=BewtufQD5iDXUOe9Zc3pnsw@mail.gmail.com>
> Date: Wed, 12 Feb 2014 08:37:15 +0100
> From: Dani Moncayo <dmoncayo@gmail.com>
> Cc: Emacs developers <emacs-devel@gnu.org>,
> Angelo Graziosi <angelo.graziosi@alice.it>
>
> If it was possible, it'd be nice if we could get rid of
> "runemacs.exe", and always use "emacs.exe" like on the rest of
> platforms.
If it's possible, yes. Patches are welcome.
> AFAIK, what "runemacs.exe" does is to asynchronously invoke
> "emacs.exe" and then close/kill the CMD window.
No, that's not what runemacs does. It invokes emacs.exe while
specifying that its console window be hidden in the first place, and
never shown, neither on the desktop nor in the task bar. This
prevents momentarily flashing the console window, as well as several
other potential problems. As a side effect, it also emulates the
Posix "&" shell operator, when runemacs is invoked from a shell
prompt (although this is not the main reason for having runemacs, as
there are other method of achieving the same).
> Wouldn't it be possible to achieve the same behavior from
> "emacs.exe"?
Maybe it is possible, but certainly not trivial, AFAIK. Patches are
welcome; the requirements for such a single emacs.exe executable are
as follows:
. It should be able to run it as a console application with output to
the same console from which it was invoked, when given the -nw or
the -batch/--script options.
. When run without the above switches, it should behave as a GUI
application, i.e. create a GUI frame, start the message pump, etc.
. When invoked from a shell prompt, it should support redirection as
in "emacs > foo" (including redirection of stderr with 2> and 2>&1),
both in GUI and in -nw/batch modes.
. When invoked from a shell prompt, it should not release the console
(this is actually a subtle prerequisite of the previous requirement,
but is mentioned here explicitly because it is not immediately
self-evident).
. When invoked in the GUI mode, it should not display a console
window of any kind, shape, or form, including not in the task bar.
. It should support invocation in GUI mode using any method Windows
provides for activating applications, including from a desktop
shortcut, from the Start menu, and from the icon pinned to the task
bar.
. When invoked in the console/batch mode, it should not display any
additional windows, GUI or otherwise.
. In batch mode, it should be able to read keyboard input typed into
the console window from which it was invoked.
. It should support invocation from a debugger, as in "gdb ./emacs.exe".
. It should be possible to invoke Emacs "as Administrator".
prev parent reply other threads:[~2014-02-12 16:20 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
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 [this message]
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=83txc4s3ph.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=angelo.graziosi@alice.it \
--cc=dmoncayo@gmail.com \
--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.