help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dumping emacs after find-file


From: Burton Samograd
Subject: Dumping emacs after find-file
Date: Sun, 18 Nov 2012 16:01:35 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]