From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Elric Milon via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#45103: [feature/native-comp] add re-dumping support Date: Tue, 03 Aug 2021 13:46:27 +0200 Message-ID: <878s1ida3w.fsf@whirm.eu> References: Reply-To: Elric Milon Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36728"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Y Qu , 45103@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 03 23:30:30 2021 Return-path: Envelope-to: geb-bug-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 1mB1za-0009ME-NX for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Aug 2021 23:30:30 +0200 Original-Received: from localhost ([::1]:37308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mB1zZ-00038p-A6 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Aug 2021 17:30:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mB1z9-0002i1-K8 for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2021 17:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58364) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mB1z9-0000io-EW for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2021 17:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mB1z9-0006ca-9x for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2021 17:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Elric Milon Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Aug 2021 21:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45103 X-GNU-PR-Package: emacs Original-Received: via spool by 45103-submit@debbugs.gnu.org id=B45103.162802618225359 (code B ref 45103); Tue, 03 Aug 2021 21:30:03 +0000 Original-Received: (at 45103) by debbugs.gnu.org; 3 Aug 2021 21:29:42 +0000 Original-Received: from localhost ([127.0.0.1]:41669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mB1yo-0006av-4p for submit@debbugs.gnu.org; Tue, 03 Aug 2021 17:29:42 -0400 Original-Received: from whirm.eu ([164.132.0.150]:45498 helo=mail.whirm.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAssu-0000kq-Ts for 45103@debbugs.gnu.org; Tue, 03 Aug 2021 07:47:01 -0400 Original-Received: from localhost (whirm.eu [127.0.0.1]) by mail.whirm.eu (Postfix) with ESMTP id 761CC1200D9; Tue, 3 Aug 2021 13:46:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whirm.eu; s=modoboa; t=1627991209; bh=rbxNlIGMUXzvq1VHgDbKKluG0UBDqUd+gyuzERE+hxo=; h=References:From:To:Cc:Subject:In-Reply-To:Date:From; b=rNMvuh1CmMNfWREcx9Fx+yHZp0SUELd2q9MRcUDS4eJm29Uz2Ooc5I3+GaG35moNU /eFXQZt5it9kn8NyFQoBeasqBx/uCdI2kMSIqCA1RPAeXOnkCTrCRFwgwbKGYhU94N 7nBII72jppWTWpjp7g6rR4gZCg8RY/86fZLVOEuf3HsPA9Jzz+Yerpa4X1arQYGgmy qGUehKDEl2Rf8RyqkqtTRRnuURsK80+owbu+swZajnnfEt3wh6xEucp+CsrAFAXXwA 0znKoLN+acBfxVxqqstsIvJYjO4jptQaLT/z7ZJeGiaRUzgnnwXOX3465JaMPDa9RA yolzIjm2HAnfurzZ99pbXZEMHJcfybwk4+Puyv40mbu46Fot8W+UnFMvBZaI11Q6BJ itSSIqHR25RU4hlSHrTQKM1hmISqSAjQrYWqOt4m2D+FFnW+/yeq9q2aiEgsxWJ/sX ew6ctKc8z7F9tO/sNJsubKUlbVzjJCUTkndw9JPP/IpEWjjQS2j9JJUG8BT7yGpDIo sIYyN0zjg/OyjlXx6CQYDTPIsGhxGBiUtjb2moLJY87ZiSWJYdtDxCq0ZGZ3mtm9Si mnoxmfC7FYRSJoTzEOuWn5qJRIZLvGuYXSdVTiApkF5Z8Erjpeq3WqXCwbArhKrgCP I5KidYtGgsVkAVaD8Komc Original-Received: from mail.whirm.eu ([127.0.0.1]) by localhost (mail.whirm.eu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id r6YcNNFBaDI9; Tue, 3 Aug 2021 13:46:33 +0200 (CEST) Original-Received: from 4k (232-193-250-62.ftth.glasoperator.nl [62.250.193.232]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.whirm.eu (Postfix) with ESMTPSA; Tue, 3 Aug 2021 13:46:33 +0200 (CEST) In-Reply-To: (Andrea Corallo's message of "Mon, 07 Dec 2020 16:05:14 +0000") X-Mailman-Approved-At: Tue, 03 Aug 2021 17:29:41 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:211102 Archived-At: Andrea Corallo writes: > Hi Ying Qu, > > I guess you are the first trying to re-dump a native compiled > Emacs > session. Despite being in principle possible there's certanly > something > to look at. > > In general my understanding is that ATM we do not support > officially > Emacs re-dumps, so also on a vanilla build it may work or not. > > As a consequence I'm not sure this is a requirement for this > feature > ATM. Perhaps we'll get some other opinion on this. Hi Andrea, Even if not supported, it did work (some workarounds required at times) and it's used. I had been using it before switching to native-comp via spacemacs' dumping support: https://github.com/syl20bnr/spacemacs/blob/develop/EXPERIMENTAL.org#spacemacs-dumps-using-the-portable-dumper I think it would be really nice to be able to do something similar again. I spent some time attempting to make it work again by avoiding re-dumping (starting from bare temacs) but at some point I gave up (It's been a while but, if memory serves, I found C and lisp code clearly not expecting for anyone to want to dump anything else than loadup.el). If that where an option then support for re-dumping would not be needed anymore. Maybe it would be a good idea to add a guard to prevent re-dumping so that users are aware they are doing something that will never work and it's not something they are doing wrong (I spent a lot of time on this myself :)). Cheers!