all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Dumping emacs after find-file
@ 2012-11-18 23:01 Burton Samograd
  2012-11-19  3:48 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Burton Samograd @ 2012-11-18 23:01 UTC (permalink / raw)
  To: help-gnu-emacs

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







^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-11-19 18:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-18 23:01 Dumping emacs after find-file Burton Samograd
2012-11-19  3:48 ` Eli Zaretskii
2012-11-19  5:01   ` Burton Samograd
2012-11-19 16:16     ` Eli Zaretskii
2012-11-19 18:09       ` Burton Samograd

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.