From: Burton Samograd <burton@samograd.ca>
To: help-gnu-emacs@gnu.org
Subject: Dumping emacs after find-file
Date: Sun, 18 Nov 2012 16:01:35 -0700 [thread overview]
Message-ID: <87lidya52o.fsf@samograd.ca> (raw)
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
next reply other threads:[~2012-11-18 23:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-18 23:01 Burton Samograd [this message]
2012-11-19 3:48 ` Dumping emacs after find-file Eli Zaretskii
2012-11-19 5:01 ` Burton Samograd
2012-11-19 16:16 ` Eli Zaretskii
2012-11-19 18:09 ` Burton Samograd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lidya52o.fsf@samograd.ca \
--to=burton@samograd.ca \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.