From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Leo Butler Newsgroups: gmane.emacs.help Subject: Re: How to dump Emacs and use as application snapshot? Date: Tue, 27 Oct 2020 20:26:22 -0500 Message-ID: <865z6vf8e9.fsf@x201.butler.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36401"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 28 02:41: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 1kXaTN-0009Lv-Fl for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 28 Oct 2020 02:41:57 +0100 Original-Received: from localhost ([::1]:42596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXaTM-000651-H7 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 27 Oct 2020 21:41:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXaT1-00064f-3A for help-gnu-emacs@gnu.org; Tue, 27 Oct 2020 21:41:35 -0400 Original-Received: from mail-eopbgr660105.outbound.protection.outlook.com ([40.107.66.105]:13714 helo=CAN01-QB1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXaSy-0005ac-Eg for help-gnu-emacs@gnu.org; Tue, 27 Oct 2020 21:41:34 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OAtJfT52SgwvmLH7BLHN0V5RvREvKjz1VstLiEydbWs4v8mi4k7wJO7mXGbM3jeQKRAPzdyj4AI3UpwF6J83XptxzCpYNyxnNNUnE8OfvR1iih0MU2CBMzz8N9KJINahpCZAaq2OBF6tx2kBjNvB6hBTEDjLpakmKflE5EnhkOy8c14iNsKj4KG9iad3Ts8bSRPM0oMrH5u2WOjxbv5UBO1sf2FISErUXvQ7bWMHtsaFTzEx0tav/O7rOBgJML31Nhvsww66RPzK2HOTZk4/s/AZiqw4V0jLqUFS2qUnC4lIjb4xWoAKrpiCTWCGIgXoRBu8uOtXn0rwAFBoefugpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NFysPEAiRQJpsIrJBpXkAZ/b25ErNy88pjAzQ6C0SdQ=; b=LWBRTti7VEwTi02GeLxpBZmSr5R54AOB8+/5b8Wrx3CyDZ9gpKoGcfN7hCz+xAgSEKUlI/w4qK/dJ3EViGZ4VYNy0SDstyInfeQgIBOHA+5tgW/85z3vFYYyzuK0cG1Dc0BIsAQsdKlqcXAWgjuZCIZ/2QtKyBbm7pcmccK2XYunwWyz9GHML5+Evv6Pz4SUecShcgCY4jNqVG6EC4G31qeYWzfY+06QmBj2Pu4i4AYFcMhxJwW4KUiPwRNFWiGzGcdV/Tr+0qJU5Oaanv794ZUBbqKv+giIrbR4lYZ1woDbAsqn5hVSJa9pcGxnbtoSa9uJ4FkJZwDHfeYGN3Pzww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=umanitoba.ca; dmarc=pass action=none header.from=umanitoba.ca; dkim=pass header.d=umanitoba.ca; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umanitoba.onmicrosoft.com; s=selector2-umanitoba-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NFysPEAiRQJpsIrJBpXkAZ/b25ErNy88pjAzQ6C0SdQ=; b=TULNrvTMrQ2pS0les33vYmVSRf5Iym9JcZS4xuhbjA/9xXB9AirCtvJzWNv2BcjYZCiyc33LnxVBlht56m6PNTYr01eqGdQhk9ac3roHIlIRP+A+dewhbpQvnYmW2H0jD4vJayOjhKJvLJ5kfBrqyC0me8GvTm/14Yzpgb0zn9E= Authentication-Results: gnu.org; dkim=none (message not signed) header.d=none;gnu.org; dmarc=none action=none header.from=umanitoba.ca; Original-Received: from YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:21::31) by YTXPR0101MB0941.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b00:3::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18; Wed, 28 Oct 2020 01:26:26 +0000 Original-Received: from YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM ([fe80::d9ac:774a:ace:9c4e]) by YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM ([fe80::d9ac:774a:ace:9c4e%3]) with mapi id 15.20.3499.019; Wed, 28 Oct 2020 01:26:26 +0000 In-Reply-To: (Jean Louis's message of "Tue, 27 Oct 2020 20:41:26 +0300") X-Originating-IP: [45.44.33.194] X-ClientProxiedBy: MWHPR10CA0049.namprd10.prod.outlook.com (2603:10b6:300:2c::11) To YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:21::31) X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from x201 (45.44.33.194) by MWHPR10CA0049.namprd10.prod.outlook.com (2603:10b6:300:2c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.19 via Frontend Transport; Wed, 28 Oct 2020 01:26:26 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6e4da5b5-65d6-47de-3e5c-08d87ae07d42 X-MS-TrafficTypeDiagnostic: YTXPR0101MB0941: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IoPuzfP7K/7VQsF/Bpq2sLi74pP+Xpw7/RXRtpocuvrewyZJWOXvhwkmrWNQFimrrXXjdc95Or1fnRgnKrlVdD2JXg9jUd/QtD0ti9BnCb4EaTH8uXRjXPNsHwGP9ld9TQEeLkkax+gGs3KaTN6P8hKpJ5V3bW42urMwuRH5NwKw0N0feX4nVzIaUTpZahrzuDiaVtkH2DCkYen3DGolzt65Fc9zNmJJ3q9wofHJHINeFKMQH9oORj+/ZjY53CZlt/SS+niYfehD11WxYD/wLoCuxFZvaYKilRyUGnb3kN/zQoIDCUjyhaTJwBjYbTj2yUvXhaIbasML3jvR8TcFGg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(136003)(366004)(39850400004)(376002)(346002)(396003)(186003)(4326008)(26005)(66476007)(16526019)(66946007)(6496006)(66556008)(2906002)(9686003)(6666004)(8936002)(8676002)(86362001)(478600001)(316002)(44832011)(83380400001)(786003)(5660300002)(956004)(52116002)(6486002)(6916009); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: P6Unp+rxWVslW3QeN7ugtOTiTWEIdxAxaM1NG0tnntbLD8gjaIwZ0zmozhIF0zMdsRzRS6DYCL6PU4IvFIAUlDqtGt2lwSKVeymJI+hiFRIFCONnOkEt+R9t64x8EnJ9cmvfXZzAkbfiOd+sOzVmZ+guCsqu9Q1M9abgXGhOznnQ7Sgak+RhHZUrqtr+6rfiUP48R5thX1HHaOUxrdFUDdohRZqp47nB5rd9L9DyHT7PGTPUfvqiTKjnZepcEAyLNSn2SRzp46vTB5C5v18BHfspI04e8dhpkMrbwFxt7tphEj0mXzcilfnJ1g5p4rCdraSQDX8KEy53WhTLn0NNxPSl5BQ0szuzvGdpZXDPOQ7lAzunpQ3rchQliiK5cIuWdfWySwoQokWToT8d0YxxhqhoJruLkD2STk1zqDHDKI9NAG9BtMOtD34hWxZx/dXZmaU7z1nwiRPz9vQY/pM5OofAsGElxLpwhrreSk+Xem7tCeWiTg2NZBdDVuYVqblKhNAaJ1P5BbJQJDb/N7yI+uEHaSlcIzWwnMcuIrDd2c3C0uQauXxOHqSfturpYIyC/hSgJ1TIgLgX+Htbb6kJF4ulIo135SZPCnaL70LEynoUeXDZTmEEGhZ2inwLyGuyl+2TUpVYab2oBDgDxhWk4g== X-OriginatorOrg: umanitoba.ca X-MS-Exchange-CrossTenant-Network-Message-Id: 6e4da5b5-65d6-47de-3e5c-08d87ae07d42 X-MS-Exchange-CrossTenant-AuthSource: YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2020 01:26:26.7930 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4f80dd0b-338c-4e4c-8a14-90446962f7b8 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: UUlPmBU7wBNAxt4g+xy/aA2WAq2SI8froLm3p+jXFpR3pMPl4mb9bOj6XVNF2kMaT+hhpHKIXm/6sKqiJ9nAzg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTXPR0101MB0941 Received-SPF: pass client-ip=40.107.66.105; envelope-from=Leo.Butler@umanitoba.ca; helo=CAN01-QB1-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/27 21:41:30 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham 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:124762 Archived-At: Jean Louis 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