help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to dump Emacs and use as application snapshot?


From: Jean Louis
Subject: How to dump Emacs and use as application snapshot?
Date: Tue, 27 Oct 2020 20:41:26 +0300

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?

-- 
Thanks,
Jean Louis



reply via email to

[Prev in Thread] Current Thread [Next in Thread]