From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: How to dump Emacs and use as application snapshot? Date: Tue, 27 Oct 2020 20:41:26 +0300 Message-ID: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13386"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 27 18:45:57 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kXT2f-0003Fw-45 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 27 Oct 2020 18:45:53 +0100 Original-Received: from localhost ([::1]:39276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXT2d-0000IT-UT for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 27 Oct 2020 13:45:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXSz0-0004Nz-E0 for help-gnu-emacs@gnu.org; Tue, 27 Oct 2020 13:42:06 -0400 Original-Received: from static.rcdrun.com ([95.85.24.50]:42777) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXSyx-0003xb-SH for help-gnu-emacs@gnu.org; Tue, 27 Oct 2020 13:42:05 -0400 Original-Received: from localhost ([::ffff:197.157.0.60]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002A0C0F.000000005F985BC8.00002FA2; Tue, 27 Oct 2020 17:41:27 +0000 Received-SPF: pass client-ip=95.85.24.50; envelope-from=support1@rcdrun.com; helo=static.rcdrun.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/27 13:40:55 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_SORBS_WEB=1.5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124739 Archived-At: 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