From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Burton Samograd Newsgroups: gmane.emacs.help Subject: Dumping emacs after find-file Date: Sun, 18 Nov 2012 16:01:35 -0700 Message-ID: <87lidya52o.fsf@samograd.ca> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1353280809 2259 80.91.229.3 (18 Nov 2012 23:20:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Nov 2012 23:20:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 19 00:20:21 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TaEA0-0001QE-EQ for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Nov 2012 00:20:20 +0100 Original-Received: from localhost ([::1]:45018 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaE9q-0000bN-3F for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Nov 2012 18:20:10 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45177) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaE9h-0000ZZ-SG for help-gnu-emacs@gnu.org; Sun, 18 Nov 2012 18:20:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TaE9e-0008Ql-Om for help-gnu-emacs@gnu.org; Sun, 18 Nov 2012 18:20:01 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:53141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaE9e-0008QS-Hy for help-gnu-emacs@gnu.org; Sun, 18 Nov 2012 18:19:58 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TaE9j-0001Cb-EW for help-gnu-emacs@gnu.org; Mon, 19 Nov 2012 00:20:03 +0100 Original-Received: from samograd.ca ([69.90.114.176]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Nov 2012 00:20:03 +0100 Original-Received: from burton by samograd.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Nov 2012 00:20:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: samograd.ca User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:FHdEBsSth5pJpZiTuET1khArJBg= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87773 Archived-At: Hi, I'm trying out dumping emacs from --batch mode. When I put the following into a file dump.el and run it with "emacs --batch --load dump.el" , I can run the resulting dumped executable and see that there is a buffer named "x" with the contents "this is a test": (progn (switch-to-buffer "x") (insert "this is a test") (dump-emacs "testing" "~/src/emacs-git/src/emacs")) The following does not produce and dumped executable at all: (progn (find-file "~/.emacs.d/init.el") (switch-to-buffer "x") (insert "this is a test") (dump-emacs "testing" "~/src/emacs-git/src/emacs")) I thought this was because there was an open buffer pointing to a file on the filesystem, so I tried the following: (progn (find-file "~/.emacs.d/init.el") (set-visited-file-name nil) (switch-to-buffer "x") (insert "this is a test") (dump-emacs "testing" "~/src/emacs-git/src/emacs")) This also produces no dumped executable. It seems that having buffers in the heap/core is fine, but not after they have been loaded with find-file. Is there an explanation for this? I can't see any reason in the code after a quick glance so I thought I would ask. -- Burton Samograd