From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: Preview: portable dumper Date: Sun, 25 Feb 2018 22:23:43 -0800 Message-ID: References: <20180215224653.GA36004@breton.holly.idiocy.org> <87sh9uf19h.fsf@russet.org.uk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1519626119 27488 195.159.176.226 (26 Feb 2018 06:21:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Feb 2018 06:21:59 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 Cc: emacs-devel@gnu.org To: Phillip Lord , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 26 07:21:54 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eqCAc-0006jH-3Z for ged-emacs-devel@m.gmane.org; Mon, 26 Feb 2018 07:21:54 +0100 Original-Received: from localhost ([::1]:57361 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqCCe-00065S-Kc for ged-emacs-devel@m.gmane.org; Mon, 26 Feb 2018 01:24:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqCCX-00063z-Ql for emacs-devel@gnu.org; Mon, 26 Feb 2018 01:23:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqCCW-0001Sl-UN for emacs-devel@gnu.org; Mon, 26 Feb 2018 01:23:53 -0500 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:50032) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eqCCW-0001SN-KH for emacs-devel@gnu.org; Mon, 26 Feb 2018 01:23:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=mPTL2mL9XgW0eF7OPJA/KFhcQPw8E29unC++qgArnS0=; b=TtpnbWbotlEEqy3OsiOqXbs5hXmZQzJuMXTFP9yXRMQ8wm5J8xpCZZJ8UnkJCnAneaYi49DcrApktHGE0LQZGDwY4KoZXMqrFkkHNQPzpcCQPOHKo56CWR30HkBuUO+NQ3QxjmzAX5bd9V2N/EF5kUeUKb8wl8E2FYGVULT0LyG04jrYDSYNV+K3hUK1s7hKGYX37axQ62nkk54bMYHK1AO1R5jodEo3RxttxJgos/+P25flKpbEFgvw78MFtAgDMu6JAM6EObHsJU5l35Rn4fcAUjbrGdLs0A6GHKSk5wia7etyrksqioYL5C8C1KRxSWC4vasYPO2DuEp0v7QBVQ==; Original-Received: from [2604:4080:1321:8ab0:2891:b7:d72c:af1b] by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1eqCCT-0006yJ-Gx; Sun, 25 Feb 2018 22:23:49 -0800 In-Reply-To: <87sh9uf19h.fsf@russet.org.uk> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223040 Archived-At: On 02/21/2018 02:04 PM, Phillip Lord wrote: > Stefan Monnier writes: > >>> I do wonder whether it makes sense to try to copy the dump into the >>> Emacs executable itself instead of leaving it as a separate file. >> >> We could try, but: >> - it adds complexity and maybe system-dependent hacks. >> - it closes the opportunity to have several dump files for a single >> executable (I was thinking we could try and let end-users build their >> own dump file). > > While I've got little to add the discussion of the innards, this > occurred to me also. In fact, I've been trying it -- I figured that > a "redump Emacs after load .emacs" would be a fairly attractive option, > especially if it was automated. > > Anyway, at the moment, I can't get it to work. Calling this: > > (dump-emacs-portable "~/scratch/test.pdmp") > > after loading my .emacs works (early versions crashed, so something's > been fixed there). However, trying to use this: > > ./src/emacs -q --dump-file ~/scratch/test.pdmp > emacs: could not load dump file "/home/phillord/scratch/test.pdmp": not a dump file I'm able to re-dump now. Can you try it again?