unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Finding the dump
@ 2019-01-23 13:15 Stefan Monnier
  2019-01-23 13:46 ` Robert Pluim
                   ` (3 more replies)
  0 siblings, 4 replies; 81+ messages in thread
From: Stefan Monnier @ 2019-01-23 13:15 UTC (permalink / raw)
  To: emacs-devel

The new pdumper code is very welcome, but of course it introduces some
regressions and new problems:

- When I start my Emacs, it now says

    Loading loadup.el (source)...
    dump mode: nil
    [...]

  and goes on to (re)load the loadup.el instead of using the .pdmp file

  This is because I run my Emacs via a symlink, and load_pdump is not
  careful to try and follow symlinks while looking for the .pdmp next to
  the executable.  I think we should try and handle the use case rather
  than requiring the user to make a second matching symlink to the
  pdmp file.

- I wonder what distributions like Debian will say about having a .pdmp
  file in /usr/bin (AFAICT they normally only have executable files in
  there).  While we can let them hack their solution if they want to
  keep the dumps elsewhere, maybe we should directly add support for
  having dumps elsewhere since that might be useful in general.

  E.g., I think we should also search for the pdmp files in exec-directory.


        Stefan


PS: While "portable dumper" is a perfectly natural name for the code,
    I think the things we save aren't "portable dumps" (the code is
    portable but not the dump) but "heap images", so maybe the file name
    we use should reflect that.



^ permalink raw reply	[flat|nested] 81+ messages in thread
* Re: Finding the dump
@ 2019-01-30  3:00 Van L
  0 siblings, 0 replies; 81+ messages in thread
From: Van L @ 2019-01-30  3:00 UTC (permalink / raw)
  To: Emacs developers


> >> > supporting emacs-X.Y.Z versions.  But I added a feature whereby
> >> > renaming the Emacs executable and the pdump file to have the same
> >> > basename will also work.
> >>
> >> This depends on argv[0] being accurate, though.
> >
> > I don't think I follow.  Can you give an example when it won't work as
> > intended?
>
> You can set argv[0] to whatever you want.  It doesn't have to match the
> executable name in any way.

As an example use-case, I have links in ~/bin for emacs like

  emacs-22 -> /usr/bin/emacs
  emacs-26-mac -> /Applications/MacPorts/EmacsMac.app/Contents/MacOS/bin/emacs
  emacs-27 -> /opt/local/bin/emacs-27.0.50

and, there's

  /opt/local/bin/emacs -> /opt/local/bin/emacs-27.0.50

if that will be the cause of trouble ahead.


^ permalink raw reply	[flat|nested] 81+ messages in thread

end of thread, other threads:[~2019-02-03  4:36 UTC | newest]

Thread overview: 81+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-23 13:15 Finding the dump Stefan Monnier
2019-01-23 13:46 ` Robert Pluim
2019-01-23 15:13   ` Stefan Monnier
2019-01-23 13:55 ` Andreas Schwab
2019-01-23 15:17   ` Stefan Monnier
2019-01-23 15:37     ` Andreas Schwab
2019-01-23 15:44 ` Andreas Schwab
2019-01-23 16:07   ` Stefan Monnier
2019-01-23 15:50 ` Eli Zaretskii
2019-01-23 16:02   ` Stefan Monnier
2019-01-23 16:04   ` Paul Eggert
2019-01-23 16:38   ` Robert Pluim
2019-01-23 17:24     ` Eli Zaretskii
2019-01-26 12:17       ` Eli Zaretskii
2019-01-26 15:03         ` Andreas Schwab
2019-01-26 15:12           ` Eli Zaretskii
2019-01-26 15:44             ` Andreas Schwab
2019-01-26 17:02               ` Eli Zaretskii
2019-01-26 20:44                 ` Andreas Schwab
2019-01-27 15:20                   ` Eli Zaretskii
2019-01-27 15:46                     ` Andreas Schwab
2019-01-27 15:59                       ` Eli Zaretskii
2019-01-27 16:37                         ` Andreas Schwab
2019-01-27 16:56                           ` Eli Zaretskii
2019-01-27 17:00                             ` Andreas Schwab
2019-01-27 18:26                           ` Daniel Colascione
2019-01-27 18:46                             ` Andreas Schwab
2019-01-27 18:58                               ` Stefan Monnier
2019-01-27 19:27                               ` Daniel Colascione
2019-01-27 19:42                                 ` Stefan Monnier
2019-01-28  1:06                                   ` Daniel Colascione
2019-01-27 20:12                                 ` Andreas Schwab
2019-01-27 21:25                                   ` Daniel Colascione
2019-01-27 21:37                                     ` Andreas Schwab
2019-01-27 23:47                                       ` Paul Eggert
2019-01-28  0:32                                         ` Daniel Colascione
2019-01-28  1:21                                           ` Paul Eggert
2019-01-28  1:29                                             ` Daniel Colascione
2019-01-28 19:03                                             ` Richard Stallman
2019-01-28 19:23                                               ` Paul Eggert
2019-01-28 23:09                                                 ` Stefan Monnier
2019-01-29  8:50                                                 ` Richard Stallman
2019-01-31  2:21                                                   ` Paul Eggert
2019-02-01  0:23                                                     ` Richard Stallman
2019-02-01  2:09                                                       ` Paul Eggert
2019-02-02  3:25                                                         ` Richard Stallman
2019-02-02  7:23                                                           ` Eli Zaretskii
2019-02-03  4:36                                                             ` Richard Stallman
2019-02-01  7:22                                                       ` Eli Zaretskii
2019-02-02  3:25                                                         ` Richard Stallman
2019-02-02  7:22                                                           ` Eli Zaretskii
2019-02-03  4:36                                                             ` Richard Stallman
2019-01-28  3:38                                         ` Eli Zaretskii
2019-01-28  4:13                                           ` Paul Eggert
2019-01-28  6:28                                             ` Daniel Colascione
2019-01-28 15:35                                             ` Eli Zaretskii
2019-01-28 15:57                                               ` Paul Eggert
2019-01-28 16:02                                                 ` Daniel Colascione
2019-01-28 17:39                                                   ` Paul Eggert
2019-01-28 19:46                                                     ` Daniel Colascione
2019-01-28  8:53                                         ` Stefan Monnier
2019-01-28 12:57                                           ` Fu Yuan
2019-01-28 15:41                                           ` Eli Zaretskii
2019-01-28 18:20                                             ` Stefan Monnier
2019-01-28 19:53                                               ` Eli Zaretskii
2019-01-28 22:30                                                 ` Stefan Monnier
2019-01-27  9:55           ` Stefan Monnier
2019-01-27 10:32             ` Andreas Schwab
2019-01-27 10:44               ` Stefan Monnier
2019-01-27 10:54                 ` Andreas Schwab
2019-01-27 15:33                   ` Eli Zaretskii
2019-01-27 18:52                     ` Stefan Monnier
2019-01-27 19:25                       ` Eli Zaretskii
2019-01-27 18:47                   ` Stefan Monnier
2019-01-26 17:27         ` Michael Heerdegen
2019-01-26 17:29           ` Eli Zaretskii
2019-01-26 18:05             ` Michael Heerdegen
2019-01-26 18:13               ` Eli Zaretskii
2019-01-26 20:05                 ` Michael Heerdegen
2019-01-26 20:43                   ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2019-01-30  3:00 Van L

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).