* How to show which files loaded on startup?
@ 2008-07-03 16:31 ranchlan
2008-07-03 17:59 ` Colin S. Miller
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: ranchlan @ 2008-07-03 16:31 UTC (permalink / raw)
To: help-gnu-emacs
I am having problems with emacs taking a very long time to start (for
environment info see end of post). When I start it in a terminal
windows (nox) I get the "F1 *scratch*" screen right away but it takes
me about 70 seconds before the screen allows me to enter anything.
However, when I start emacs with the "-q" option it starts instantly
(under one second). So, it appears that the slowness is due to
some .el or .elc file that emacs is loading when it starts.
I looked around and removed all the the files I thought might be
causing the problem but to no avail. So, what I would like to see is
exactly _which_ files emacs is loading when it starts.
How can I generate such a list?
Environment information:
Debian Etch, GNU Emacs 21.4.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to show which files loaded on startup?
2008-07-03 16:31 How to show which files loaded on startup? ranchlan
@ 2008-07-03 17:59 ` Colin S. Miller
2008-07-03 19:38 ` Kevin Rodgers
2008-07-03 18:55 ` Pascal J. Bourguignon
2008-07-03 19:35 ` Xah
2 siblings, 1 reply; 6+ messages in thread
From: Colin S. Miller @ 2008-07-03 17:59 UTC (permalink / raw)
To: help-gnu-emacs
ranchlan wrote:
> I am having problems with emacs taking a very long time to start (for
> environment info see end of post). When I start it in a terminal
> windows (nox) I get the "F1 *scratch*" screen right away but it takes
> me about 70 seconds before the screen allows me to enter anything.
>
> However, when I start emacs with the "-q" option it starts instantly
> (under one second). So, it appears that the slowness is due to
> some .el or .elc file that emacs is loading when it starts.
>
> I looked around and removed all the the files I thought might be
> causing the problem but to no avail. So, what I would like to see is
> exactly _which_ files emacs is loading when it starts.
>
> How can I generate such a list?
>
> Environment information:
> Debian Etch, GNU Emacs 21.4.1
C-h v features RET
will give a list of the features loaded.
This is a .el or .elc, if it called 'provide.
M-: (feature-file 'foo) RET
will tell you which file provided feature "foo"
It will be in one of the directories listed in
C-h v load-path RET
but I can't find an easy way to determine which one it is.
HTH,
Colin S. Miller
--
Replace the obvious in my email address with the first three letters of the hostname to reply.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to show which files loaded on startup?
2008-07-03 16:31 How to show which files loaded on startup? ranchlan
2008-07-03 17:59 ` Colin S. Miller
@ 2008-07-03 18:55 ` Pascal J. Bourguignon
2008-07-03 19:35 ` Xah
2 siblings, 0 replies; 6+ messages in thread
From: Pascal J. Bourguignon @ 2008-07-03 18:55 UTC (permalink / raw)
To: help-gnu-emacs
ranchlan <ahl456@gmail.com> writes:
> I am having problems with emacs taking a very long time to start (for
> environment info see end of post). When I start it in a terminal
> windows (nox) I get the "F1 *scratch*" screen right away but it takes
> me about 70 seconds before the screen allows me to enter anything.
>
> However, when I start emacs with the "-q" option it starts instantly
> (under one second). So, it appears that the slowness is due to
> some .el or .elc file that emacs is loading when it starts.
When you pass -q, emacs skips loading your dot file: ~/.emacs
Edit it with C-x C-f ~/.emacs RET
> I looked around and removed all the the files I thought might be
> causing the problem but to no avail. So, what I would like to see is
> exactly _which_ files emacs is loading when it starts.
>
> How can I generate such a list?
(mapcar 'first load-history)
> Environment information:
> Debian Etch, GNU Emacs 21.4.1
But really why do you start emacs?
I mean, more than once everytime you boot your computer, that is,
given a Debian system, once every 18 months? Don't you use emacsclient?
--
__Pascal Bourguignon__ http://www.informatimago.com/
"Debugging? Klingons do not debug! Our software does not coddle the
weak."
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to show which files loaded on startup?
2008-07-03 16:31 How to show which files loaded on startup? ranchlan
2008-07-03 17:59 ` Colin S. Miller
2008-07-03 18:55 ` Pascal J. Bourguignon
@ 2008-07-03 19:35 ` Xah
2 siblings, 0 replies; 6+ messages in thread
From: Xah @ 2008-07-03 19:35 UTC (permalink / raw)
To: help-gnu-emacs
another way to diagnose “.emacs” problem is to comment out half of the
file then restart. If still problem, then comment out half more, else,
switch the last commented/uncommented. So each time, you narrow down
my half. After just very few tries, you'll find your problem location.
(on algorithmic efficiency, this is 1/2^n hehe)
Xah
∑ http://xahlee.org/
☄
On Jul 3, 9:31 am, ranchlan <ahl...@gmail.com> wrote:
> I am having problems with emacs taking a very long time to start (for
> environment info see end of post). When I start it in a terminal
> windows (nox) I get the "F1 *scratch*" screen right away but it takes
> me about 70 seconds before the screen allows me to enter anything.
>
> However, when I start emacs with the "-q" option it starts instantly
> (under one second). So, it appears that the slowness is due to
> some .el or .elc file that emacs is loading when it starts.
>
> I looked around and removed all the the files I thought might be
> causing the problem but to no avail. So, what I would like to see is
> exactly _which_ files emacs is loading when it starts.
>
> How can I generate such a list?
>
> Environment information:
> Debian Etch, GNU Emacs 21.4.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to show which files loaded on startup?
2008-07-03 17:59 ` Colin S. Miller
@ 2008-07-03 19:38 ` Kevin Rodgers
2008-07-06 16:56 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 6+ messages in thread
From: Kevin Rodgers @ 2008-07-03 19:38 UTC (permalink / raw)
To: help-gnu-emacs
Colin S. Miller wrote:
> ranchlan wrote:
>> I am having problems with emacs taking a very long time to start (for
>> environment info see end of post). When I start it in a terminal
>> windows (nox) I get the "F1 *scratch*" screen right away but it takes
>> me about 70 seconds before the screen allows me to enter anything.
>>
>> However, when I start emacs with the "-q" option it starts instantly
>> (under one second). So, it appears that the slowness is due to
>> some .el or .elc file that emacs is loading when it starts.
>>
>> I looked around and removed all the the files I thought might be
>> causing the problem but to no avail. So, what I would like to see is
>> exactly _which_ files emacs is loading when it starts.
>>
>> How can I generate such a list?
>>
>> Environment information:
>> Debian Etch, GNU Emacs 21.4.1
>
> C-h v features RET
> will give a list of the features loaded.
> This is a .el or .elc, if it called 'provide.
>
> M-: (feature-file 'foo) RET
> will tell you which file provided feature "foo"
>
> It will be in one of the directories listed in
> C-h v load-path RET
> but I can't find an easy way to determine which one it is.
>
> HTH,
> Colin S. Miller
C-x b *Messages*
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to show which files loaded on startup?
2008-07-03 19:38 ` Kevin Rodgers
@ 2008-07-06 16:56 ` Lennart Borgman (gmail)
0 siblings, 0 replies; 6+ messages in thread
From: Lennart Borgman (gmail) @ 2008-07-06 16:56 UTC (permalink / raw)
To: Kevin Rodgers; +Cc: help-gnu-emacs
> C-x b *Messages*
F1 e
C-h e
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-07-06 16:56 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-03 16:31 How to show which files loaded on startup? ranchlan
2008-07-03 17:59 ` Colin S. Miller
2008-07-03 19:38 ` Kevin Rodgers
2008-07-06 16:56 ` Lennart Borgman (gmail)
2008-07-03 18:55 ` Pascal J. Bourguignon
2008-07-03 19:35 ` Xah
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.