[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to dump Emacs and use as application snapshot?
From: |
Leo Butler |
Subject: |
Re: How to dump Emacs and use as application snapshot? |
Date: |
Tue, 27 Oct 2020 20:26:22 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Jean Louis <bugs@gnu.support> writes:
> ********************************************************
> Caution: This message was sent from outside the University of Manitoba.
> ********************************************************
>
> I would like to be able to dump the emacs how it is, and then later
> just open it up similar to application snapshot feature at Amiga or
> Dragonfly BSD.
>
> There is talk in Antinews about portable dumper, so that may exist
> now, it will not exist back in time.
>
> dump-emacs-portable can only be done from command line, it would mean
> my configuration would not work, --batch implies -q so I would need to
> load my init.el
>
> This works:
>
> emacs --batch -eval "(dump-emacs-portable \"~/my-emacs\")"
> dumping fingerprint:
> f5190a787b51041c110477031336a3a463d20c2fa433c129c2cc69f4fb191d71
> Dump complete
> Byte counts: header=84 hot=7180724 discardable=125760 cold=3356344
> Reloc counts: hot=402727 discardable=4826
>
> But this does not work:
>
> emacs --batch -eval "(load-file \"~/.emacs.d/init.el\") (dump-emacs-portable
> \"~/my-emacs\")"
>
> and this does not work:
>
> emacs --batch -eval "(setq my-var \"any\") (dump-emacs-portable
> \"~/my-emacs\")"
>
> Any way to do it?
Have you tried wrapping your eval stanza in a progn form?
emacs --batch -eval '(progn (do-the-stuff you want) (dump-emacs-portable))'
Leo
- Re: How to dump Emacs and use as application snapshot?, (continued)
Re: How to dump Emacs and use as application snapshot?, Stefan Monnier, 2020/10/27
Re: How to dump Emacs and use as application snapshot?,
Leo Butler <=