[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Finding the dump
From: |
Eli Zaretskii |
Subject: |
Re: Finding the dump |
Date: |
Mon, 28 Jan 2019 17:41:58 +0200 |
> From: Stefan Monnier <address@hidden>
> Date: Mon, 28 Jan 2019 03:53:33 -0500
>
> > I plan to look into the possibility of putting the dump file inside
> > the executable (portably, of course) so that Emacs startup needn't
> > worry about finding the dump file. This would be significantly better
> > for installers and users.
>
> Allowing the dump file to be a shebang-executable is easy, doesn't
> require a C compiler at dump-time, and works well under GNU/Linux.
> It can't be "the only way" because it works less well under MacOS and
> not at all under Windows (IIUC), but I see no reason not to support it.
Its relative complexity is such a reason, IMO.
By contrast, opening and reading a file is simple, is portable, and
works well. The issue with finding it via argv[0] is relatively
simple to solve. And if we for some reason decide that argv[0] is not
reliable enough, I already mentioned up-thread an alternative of using
platform-specific techniques to obtain the full absolute file name of
the executable without relying on argv[0].
I see no reason to increase complexity and introduce methods that
expose system dependencies on the user level due to the issue that
started this thread. IME, having OS-dependent differences in Emacs
invocation and installation is a disadvantage, it complicates the user
manual and bug-reporting instructions, if nothing else.
- Re: Finding the dump, (continued)
- Re: Finding the dump, Eli Zaretskii, 2019/01/27
- Re: Finding the dump, Paul Eggert, 2019/01/27
- Re: Finding the dump, Daniel Colascione, 2019/01/28
- Re: Finding the dump, Eli Zaretskii, 2019/01/28
- Re: Finding the dump, Paul Eggert, 2019/01/28
- Re: Finding the dump, Daniel Colascione, 2019/01/28
- Re: Finding the dump, Paul Eggert, 2019/01/28
- Re: Finding the dump, Daniel Colascione, 2019/01/28
- Re: Finding the dump, Stefan Monnier, 2019/01/28
- Re: Finding the dump, Fu Yuan, 2019/01/28
- Re: Finding the dump,
Eli Zaretskii <=
- Re: Finding the dump, Stefan Monnier, 2019/01/28
- Re: Finding the dump, Eli Zaretskii, 2019/01/28
- Re: Finding the dump, Stefan Monnier, 2019/01/28
- Re: Finding the dump, Stefan Monnier, 2019/01/27
- Re: Finding the dump, Andreas Schwab, 2019/01/27
- Re: Finding the dump, Stefan Monnier, 2019/01/27
- Re: Finding the dump, Andreas Schwab, 2019/01/27
- Re: Finding the dump, Eli Zaretskii, 2019/01/27
- Re: Finding the dump, Stefan Monnier, 2019/01/27
- Re: Finding the dump, Eli Zaretskii, 2019/01/27