unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Dumping doesn't work
       [not found] ` <3C9D5566.F521071C@is.elta.co.il>
@ 2002-03-24 12:39   ` Hannu Koivisto
  2002-03-26 13:48     ` Dumping doesn't work -- fixed! Hannu Koivisto
  0 siblings, 1 reply; 3+ messages in thread
From: Hannu Koivisto @ 2002-03-24 12:39 UTC (permalink / raw)


Eli Zaretskii <eliz@is.elta.co.il> writes:

[From the discussion in gnu.emacs.help]

> Hannu Koivisto wrote:
>> 
>> Should it be possible to dump an already dumped and installed
>> Emacs?
>
> Yes.
>
>> I tried...
>> 
>> /usr/bin/emacs-21.1 --no-site-file -q -batch \
>>   -eval '(dump-emacs "./kala" "/usr/bin/emacs-21.1")'
>> 
>> ...in my Debian GNU/Linux x86 unstable system but the created
>> executable "kala" doesn't work; all I get is:
>> 
>> * ./kala
>> --11:---F1<cursor here>
>> 
>> If I hit RET at that point, I get "End of file during parsing" and
>> end up back to the shell prompt.
>
> Sounds like a bug.  Please report it.  If you can step with a debugger
> through the startup code of the redumped Emacs and see what's different
> there from a ``normal'' Emacs startup, that would be really nice.

I'm sorry but I can't do that right now (I've got a thesis to
finish), perhaps in few weeks or so.

Some new information, though:

If I try to run my dumped "kala" executable with -nw argument (I
have DISPLAY set so the failed invocation described above should
have opened an X window), it starts.  It doesn't do anything like
read my init file or the system wide init file (perhaps this is a
feature?), but I get a *scratch* buffer, minibuffer displays "Back
to top level." and I can evaluate stuff, open files, etc.  Also, it
does not seem to process all command line arguments.  At least
-eval and -batch have no effect whatsoever.

FWIW, I verified that I get the same behaviour also with 21.2 in
Debian GNU/Linux x86 stable.

-- 
Hannu

_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs


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

* Re: Dumping doesn't work -- fixed!
  2002-03-24 12:39   ` Dumping doesn't work Hannu Koivisto
@ 2002-03-26 13:48     ` Hannu Koivisto
  2002-03-26 14:41       ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Hannu Koivisto @ 2002-03-26 13:48 UTC (permalink / raw)


Greetings,

I found the problem, it was a simple typo ->

--- /usr/local/src/emacs/emacs-21.2/src/emacs.c~	Mon Oct 29 13:31:07 2001
+++ /usr/local/src/emacs/emacs-21.2/src/emacs.c	Tue Mar 26 15:27:06 2002
@@ -1981,7 +1981,7 @@
   /* Bind `command-line-processed' to nil before dumping,
      so that the dumped Emacs will process its command line
      and set up to work with X windows if appropriate.  */
-  symbol = intern ("command-line-process");
+  symbol = intern ("command-line-processed");
   specbind (symbol, Qnil);
 
   CHECK_STRING (filename, 0);

-- 
Hannu

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

* Re: Dumping doesn't work -- fixed!
  2002-03-26 13:48     ` Dumping doesn't work -- fixed! Hannu Koivisto
@ 2002-03-26 14:41       ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2002-03-26 14:41 UTC (permalink / raw)
  Cc: gnu-emacs-bug


On Tue, 26 Mar 2002, Hannu Koivisto wrote:

> Greetings,
> 
> I found the problem, it was a simple typo ->

Thanks, I fixed that in the CVS.

The typo was there at least since 1997, so I guess no one tried dumping 
Emacs for a long, long time...

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

end of thread, other threads:[~2002-03-26 14:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87lmcidcj6.fsf@lynx.ionific.com>
     [not found] ` <3C9D5566.F521071C@is.elta.co.il>
2002-03-24 12:39   ` Dumping doesn't work Hannu Koivisto
2002-03-26 13:48     ` Dumping doesn't work -- fixed! Hannu Koivisto
2002-03-26 14:41       ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).