unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Björn Lindqvist" <bjourne@gmail.com>
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: Bloat in the Emacs Windows package
Date: Fri, 19 Apr 2019 10:00:41 +0300	[thread overview]
Message-ID: <83lg06cwdi.fsf@gnu.org> (raw)
In-Reply-To: <CALG+76ctvXveG4N71iBVqcNksc-ZYyYZ+kgSu-0R3fRSiNzDYg@mail.gmail.com> (message from Björn Lindqvist on Fri, 19 Apr 2019 00:02:55 +0200)

> From: Björn Lindqvist <bjourne@gmail.com>
> Date: Fri, 19 Apr 2019 00:02:55 +0200
> Cc: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
> 
> > And btw, invoking through a batch file is in no way 100% transparent.
> > For example, I think users who start Emacs from MSYS Bash will have to
> > go through cmd.exe, because Bash cannot interpret batch files
> > directly.  So we will have to provide both a batch file and a Unix
> > shell script, at least.
> 
> That's true so a batch file is no good. But isn't the runemacs.exe
> file already handling the indirection? If that file is compiled with
> CHOOSE_NEWEST_EXE defined, then it will automagically choose the most
> recent emacs*.exe if multiple version are installed in the same
> directory.

First, runemacs.exe is by default _not_ compiled with
CHOOSE_NEWEST_EXE defined.  I don't think we should turn that feature
on by default, because the result might be unpredictable: no one can
guarantee that the newest emacs*.exe is what the user wants.  E.g.,
what if some older version is rebuilt and re-installed, or if the user
downloads and installs an executable from another source whose
timestamp is older?  This kind of stuff is not for the faint at heart,
IMO, and that's why it's turned off.

> Personally, I never run the emacs.exe nor emacs-xy.z.exe directly
> because it opens up a useless cmd.exe window.

Not if you invoke it from a cmd.exe window.  And that is an important,
albeit relatively rarely used feature, because it allows several
important use cases, such as:

  . using Emacs in -batch mode
  . starting Emacs from emacsclient
  . starting "emacs -Q" to test if some problem happens then
  . if Emacs crashes, the backtrace is printed on the console as well,
    which is more visible than when you invoke via runemacs

> Instead I use runemacs.exe from the Start menu and emacsclientw.exe
> from the Explorer shell.

There are use cases beyond those covered by what you describe.  E.g.,
emacsclientw is inappropriate when Emacs is to be called from a
program that must wait for Emacs to finish editing, like when it is
used as EDITOR from the various VCS programs.



  reply	other threads:[~2019-04-19  7:00 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-17  5:01 Bloat in the Emacs Windows package Björn Lindqvist
2019-04-17  7:31 ` Eli Zaretskii
2019-04-17 11:15   ` Van L
2019-04-17 11:26     ` Eli Zaretskii
2019-04-17 12:39   ` Stefan Monnier
2019-04-17 14:49     ` Eli Zaretskii
2019-04-17 16:17       ` Eli Zaretskii
2019-04-18 22:02         ` Björn Lindqvist
2019-04-19  7:00           ` Eli Zaretskii [this message]
2019-04-17 17:26     ` Phillip Lord
2019-04-17 17:55       ` Stefan Monnier
2019-04-19  0:02       ` Björn Lindqvist
2019-04-19  7:33         ` Eli Zaretskii
2019-04-19 13:23           ` Óscar Fuentes
2019-04-22 21:04             ` Phillip Lord
2019-04-22 21:41               ` Óscar Fuentes
2019-04-17 13:42   ` Stefan Monnier
2019-04-17 16:19     ` Óscar Fuentes
2019-04-17 17:28     ` Phillip Lord
2019-04-17 15:07   ` Björn Lindqvist
2019-04-17 16:32     ` Eli Zaretskii
2019-04-18 23:44       ` Björn Lindqvist
2019-04-19  7:27         ` Eli Zaretskii
2019-04-19 14:17           ` Óscar Fuentes
2019-04-19 15:05             ` Eli Zaretskii
2019-04-22 20:55             ` Phillip Lord
2019-04-17 17:39     ` Phillip Lord
2019-04-17 18:06       ` Stefan Monnier
2019-04-17 18:32       ` Eli Zaretskii
2019-04-18 16:05         ` Phillip Lord
2019-04-18 19:08           ` Eli Zaretskii
2019-04-18 21:19             ` Phillip Lord
2019-04-18 23:12               ` Óscar Fuentes
2019-04-19  6:29               ` Eli Zaretskii
2019-04-22 20:40                 ` Phillip Lord
2019-04-23  2:25                   ` Stefan Monnier
2019-04-23 10:01                     ` Phillip Lord
2019-04-23 11:28                       ` Robert Pluim
2019-04-23 21:49                         ` Phillip Lord
2019-04-26 16:30                       ` Phillip Lord
2019-04-26 17:04                         ` Óscar Fuentes
2019-04-26 21:41                           ` Phillip Lord
2019-04-27 18:12                         ` Björn Lindqvist
2019-04-27 18:17                           ` Phillip Lord
2019-05-03  1:06                             ` Björn Lindqvist
2019-05-03  6:49                               ` Eli Zaretskii
2019-05-03 18:38                                 ` Björn Lindqvist
2019-05-03 18:42                                   ` Eli Zaretskii
2019-05-03 20:20                                     ` Stefan Monnier
2019-04-23  5:37                   ` Eli Zaretskii
2019-04-17 15:44 ` Phillip Lord
2019-04-17 16:25   ` Óscar Fuentes
2019-04-17 16:46     ` Eli Zaretskii
2019-04-18 16:00       ` Phillip Lord
2019-04-18 15:56     ` Phillip Lord
2019-04-18 16:39       ` Óscar Fuentes

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83lg06cwdi.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=bjourne@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).