unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Using undumped Emacs
@ 2005-02-18  6:54 Greg
  2005-02-18 23:07 ` Thien-Thi Nguyen
  2005-02-22 14:35 ` Stefan Monnier
  0 siblings, 2 replies; 12+ messages in thread
From: Greg @ 2005-02-18  6:54 UTC (permalink / raw)



I'm having a problem with colors while trying to use undumped Emacs on 
GNU/Linux

I do: ./temacs -l loadup

And at the end of loading of the Lisp code the screen gets black
all I see is a dark green "*scratch*" string on the mode-line.

If I do: ./temacs --batch -l loadup dump ; ./emacs
Colors are OK then...

What's going on? How can I fix it?
I want to use the undumped version.

Thanks in advance
Greg

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

* Re: Using undumped Emacs
  2005-02-18 23:07 ` Thien-Thi Nguyen
@ 2005-02-18 18:35   ` Greg
  2005-02-19  9:14     ` Thien-Thi Nguyen
                       ` (2 more replies)
  2005-03-09  2:04   ` David Combs
  1 sibling, 3 replies; 12+ messages in thread
From: Greg @ 2005-02-18 18:35 UTC (permalink / raw)


Thien-Thi Nguyen wrote:
> Greg <greg@nospam.org> writes:
> 
> 
>>I do: ./temacs -l loadup
> 
> 
> you can try:
> 
> TERM=vt100 ; ./temacs -l loadup
> 
> this is not optimal but if you are inclined, it makes further debugging
> easier.  under vms, for example, i always specify "vt100" while running
> undumped emacs.

That works, thank you ;)

> 
> anyway, who needs colors?  bg==fg is where it's at, man!

I know that bg==fg...
It's puzzling to me why that happens with undumped emacs,
and dumped emacs doesn't need TERM=vt100.

The Emacs docs or FAQ don't say anything about the problem.

Greg




> thi

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

* Re: Using undumped Emacs
  2005-02-18  6:54 Using undumped Emacs Greg
@ 2005-02-18 23:07 ` Thien-Thi Nguyen
  2005-02-18 18:35   ` Greg
  2005-03-09  2:04   ` David Combs
  2005-02-22 14:35 ` Stefan Monnier
  1 sibling, 2 replies; 12+ messages in thread
From: Thien-Thi Nguyen @ 2005-02-18 23:07 UTC (permalink / raw)


Greg <greg@nospam.org> writes:

> I do: ./temacs -l loadup

you can try:

TERM=vt100 ; ./temacs -l loadup

this is not optimal but if you are inclined, it makes further debugging
easier.  under vms, for example, i always specify "vt100" while running
undumped emacs.

anyway, who needs colors?  bg==fg is where it's at, man!

thi

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

* Re: Using undumped Emacs
  2005-02-18 18:35   ` Greg
@ 2005-02-19  9:14     ` Thien-Thi Nguyen
  2005-02-19 10:59     ` Eli Zaretskii
       [not found]     ` <mailman.633.1108812320.32256.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 12+ messages in thread
From: Thien-Thi Nguyen @ 2005-02-19  9:14 UTC (permalink / raw)


Greg <greg@nospam.org> writes:

> It's puzzling to me why that happens with undumped emacs,
> and dumped emacs doesn't need TERM=vt100.
>
> The Emacs docs or FAQ don't say anything about the problem.

perhaps we should start a node on emacswiki re playing w/
undumped emacs.  probably there is no faq because there are
few to no questions on the topic, a large majority of the
people preferring to use emacs "normally".

these days emacs development is more-or-less transparent
(anoncvs access available), so i would expect the norms of
its usage to expand as well.  welcome to the bleeding edge!

re terminal init: i could spew on about this for a bit, but
will refrain for now, and save it for emacswiki.  maybe there
is already such a node; i haven't checked recently.

thi

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

* Re: Using undumped Emacs
  2005-02-18 18:35   ` Greg
  2005-02-19  9:14     ` Thien-Thi Nguyen
@ 2005-02-19 10:59     ` Eli Zaretskii
       [not found]     ` <mailman.633.1108812320.32256.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 12+ messages in thread
From: Eli Zaretskii @ 2005-02-19 10:59 UTC (permalink / raw)


> From: Greg <greg@nospam.org>
> Date: Fri, 18 Feb 2005 19:35:15 +0100
> 
> It's puzzling to me why that happens with undumped emacs,
> and dumped emacs doesn't need TERM=vt100.

The Emacs initialization code does different things depending on
whether it is running in a dumped or undumped binary.  (If you want
the details, search the source code for `if' clauses that test the
global variable `initialized'.)

> The Emacs docs or FAQ don't say anything about the problem.

The FAQ is not a place for _every_ question one could possibly come up
with, it's only for _frequently_asked_ questions.

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

* Re: Using undumped Emacs
       [not found]     ` <mailman.633.1108812320.32256.help-gnu-emacs@gnu.org>
@ 2005-02-19 18:55       ` rgb
  0 siblings, 0 replies; 12+ messages in thread
From: rgb @ 2005-02-19 18:55 UTC (permalink / raw)


> > The Emacs docs or FAQ don't say anything about the problem.
>
> The FAQ is not a place for _every_ question one could possibly come
> up with, it's only for _frequently_asked_ questions.

I see the word `docs' in the OP sentence.  Are you implying that the
goal of both sources have equal aspirations?  If not, why do you
single out faq?

One might expect that a user read docs & faq.  Are you saying that
one of them actually points a reader to the answer or do you just
feel the subject is too essoteric to expect some reference to an
answer anywhere.  Not even one pointing to code.

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

* Re: Using undumped Emacs
  2005-02-22 14:35 ` Stefan Monnier
@ 2005-02-21  7:33   ` Greg
  2005-02-21  7:35   ` Greg
  1 sibling, 0 replies; 12+ messages in thread
From: Greg @ 2005-02-21  7:33 UTC (permalink / raw)


Stefan Monnier wrote:
>>I want to use the undumped version.
> 
> 
> Just curious: why on earth would you want to do that?
> 
> 
>         Stefan

Just a whim ;) I wanted to play around with loadup.el,
and I thought it would be "cleaner" to use undumped Emacs for that.
I can do it very well with dumped Emacs, but since there is such another 
option I just wanted to use it...

Greg

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

* Re: Using undumped Emacs
  2005-02-22 14:35 ` Stefan Monnier
  2005-02-21  7:33   ` Greg
@ 2005-02-21  7:35   ` Greg
  1 sibling, 0 replies; 12+ messages in thread
From: Greg @ 2005-02-21  7:35 UTC (permalink / raw)


Stefan Monnier wrote:
>>I want to use the undumped version.
> 
> 
> Just curious: why on earth would you want to do that?
> 
> 
>         Stefan

Just a whim ;) I wanted to play around with loadup.el,
and I thought it would be "cleaner" to use undumped Emacs for that.
I can do it very well with dumped Emacs, but since there is another 
option I just wanted to use it...

Greg

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

* Re: Using undumped Emacs
  2005-02-18  6:54 Using undumped Emacs Greg
  2005-02-18 23:07 ` Thien-Thi Nguyen
@ 2005-02-22 14:35 ` Stefan Monnier
  2005-02-21  7:33   ` Greg
  2005-02-21  7:35   ` Greg
  1 sibling, 2 replies; 12+ messages in thread
From: Stefan Monnier @ 2005-02-22 14:35 UTC (permalink / raw)


> I want to use the undumped version.

Just curious: why on earth would you want to do that?


        Stefan

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

* Re: Using undumped Emacs
  2005-02-18 23:07 ` Thien-Thi Nguyen
  2005-02-18 18:35   ` Greg
@ 2005-03-09  2:04   ` David Combs
  2005-03-09  3:46     ` Dhruva Krishnamurthy
  2005-03-09  9:13     ` Thien-Thi Nguyen
  1 sibling, 2 replies; 12+ messages in thread
From: David Combs @ 2005-03-09  2:04 UTC (permalink / raw)


In article <7ezmy1bh71.fsf@ada2.unipv.it>,
Thien-Thi Nguyen  <ttn@glug.org> wrote:
>Greg <greg@nospam.org> writes:
>
>> I do: ./temacs -l loadup
>
>you can try:
>
>TERM=vt100 ; ./temacs -l loadup
>
>this is not optimal but if you are inclined, it makes further debugging
>easier.  under vms, for example, i always specify "vt100" while running
>undumped emacs.

What is an "umdumped" emacs?

Thanks,

David

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

* Re: Using undumped Emacs
  2005-03-09  2:04   ` David Combs
@ 2005-03-09  3:46     ` Dhruva Krishnamurthy
  2005-03-09  9:13     ` Thien-Thi Nguyen
  1 sibling, 0 replies; 12+ messages in thread
From: Dhruva Krishnamurthy @ 2005-03-09  3:46 UTC (permalink / raw)


>>>>> On Wed, 9 Mar 2005 02:04:28 +0000 (UTC), dkcombs@panix.com (David Combs) said:

dc> In article <7ezmy1bh71.fsf@ada2.unipv.it>,
dc> Thien-Thi Nguyen  <ttn@glug.org> wrote:
>> Greg <greg@nospam.org> writes:
>> 
>>> I do: ./temacs -l loadup
>> 
>> you can try:
>> 
>> TERM=vt100 ; ./temacs -l loadup
>> 
>> this is not optimal but if you are inclined, it makes further debugging
>> easier.  under vms, for example, i always specify "vt100" while running
>> undumped emacs.

dc> What is an "umdumped" emacs?

I am making an attempt to explain one of the most complex part in emacs build,
I request the emacs gurus to correct me if I am wrong.

I am assuming that you have not built emacs from sources.

When you build emacs from source, it first makes a bare emacs binary with out
any lisp code loaded or embedded in it. You might be aware that pure emacs
with no elisp code is dumb in terms of an editor or a useful application.

The next phase in the build it to run this raw or pure or undumped emacs
called temacs (.exe on Win32 platform) by loading the elisp files which are
absolutely necessary using the "-l loadup" option. There is a "loadup.el"
which has all the other lisp code that needs to be loaded to get a
useful/working emacs. When this happens, the running temacs process will load
all the required elisp code.

The final phase is to dump that memory contents of temacs with elisp code
loaded into another executable called "emacs" (.exe on Win32). This new
executable will have all the necessary elisp code in the executable and hence
will be much faster at startup than running "./temacs -loadup". This phase of
dumping the temacs process into an emacs executable is _most_ system
dependent. XEmacs has done some progress in generalizing this concept.

I hope I have conveyed the facts (this is to the best of my knowledge).

-dhruva

-- 
Name : Dhruva Krishnamurthy (dk)
Phone: +91-(0)80-22999190
Proud FSF member: #1935

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

* Re: Using undumped Emacs
  2005-03-09  2:04   ` David Combs
  2005-03-09  3:46     ` Dhruva Krishnamurthy
@ 2005-03-09  9:13     ` Thien-Thi Nguyen
  1 sibling, 0 replies; 12+ messages in thread
From: Thien-Thi Nguyen @ 2005-03-09  9:13 UTC (permalink / raw)


dkcombs@panix.com (David Combs) writes:

> What is an "umdumped" emacs?

Dhruva Krishnamurthy has explained what "dumped" means, so i just
emphasize that "un" in this context is more suitably thought of as
"not-yet".  the following analogy does not hold:

  do : undo :: dump : undump

however, the following does:

  done : undone :: dumped : undumped

of course, if you're a monkey on the tree, "reverse undo" may make
sense after all (when upside down ;-), so apologies to all monkeys
on trees out there who may have been unintentionally unhinged by
this untroduction...

thi

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

end of thread, other threads:[~2005-03-09  9:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-18  6:54 Using undumped Emacs Greg
2005-02-18 23:07 ` Thien-Thi Nguyen
2005-02-18 18:35   ` Greg
2005-02-19  9:14     ` Thien-Thi Nguyen
2005-02-19 10:59     ` Eli Zaretskii
     [not found]     ` <mailman.633.1108812320.32256.help-gnu-emacs@gnu.org>
2005-02-19 18:55       ` rgb
2005-03-09  2:04   ` David Combs
2005-03-09  3:46     ` Dhruva Krishnamurthy
2005-03-09  9:13     ` Thien-Thi Nguyen
2005-02-22 14:35 ` Stefan Monnier
2005-02-21  7:33   ` Greg
2005-02-21  7:35   ` Greg

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).