unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* cc-mode loads lots of files.
@ 2007-01-06  0:41 Nick Roberts
  2007-01-06 10:13 ` Alan Mackenzie
  2007-01-06 10:37 ` Andreas Schwab
  0 siblings, 2 replies; 4+ messages in thread
From: Nick Roberts @ 2007-01-06  0:41 UTC (permalink / raw)



With current CVS Emacs if I open a C file in a buffer, I get:

Loading cl-macs...done
Loading bytecomp...done
Loading byte-opt...done
Loading cl-seq...done
Loading cl-extra...done

I don't know if this is due to the recent changes but do I really need all
these just to look at a file? (apologies if it's been previously explained)

-- 
Nick                                           http://www.inet.net.nz/~nickrob

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

* Re: cc-mode loads lots of files.
  2007-01-06  0:41 cc-mode loads lots of files Nick Roberts
@ 2007-01-06 10:13 ` Alan Mackenzie
  2007-01-06 10:37 ` Andreas Schwab
  1 sibling, 0 replies; 4+ messages in thread
From: Alan Mackenzie @ 2007-01-06 10:13 UTC (permalink / raw)
  Cc: emacs-devel

Hi, Nick!

On Sat, Jan 06, 2007 at 01:41:26PM +1300, Nick Roberts wrote:

> With current CVS Emacs if I open a C file in a buffer, I get:

> Loading cl-macs...done Loading bytecomp...done Loading byte-opt...done
> Loading cl-seq...done Loading cl-extra...done
 
> I don't know if this is due to the recent changes but do I really need
> all these just to look at a file? (apologies if it's been previously
> explained)
 
Oh no, not this one again!  I've already tried driving a wooden stake
through its heart to the requisite background of howling wolves at
midnight, and it still refuses to die.

In my Emacs 22 I don't experience this problem.  (And yes, it IS a
problem and shouldn't happen.)

Could you be specific about what you did - was it an Emacs -Q?  What, if
anything, CC Modish have you got in your .emacs and site-start.el, and
so on?  Is there anything noteworthy (?Local Variables:) about the
file.c you opened?

How did you build your cc-*.elc?  Can you reconstruct the order in which
you built them?  There are some intricate dependencies between the CC
Mode source files.

If you delete cc-*.elc (possibly saving them somewhere, so as not to
destroy the evidence), then rebuild them with

    M-0 M-x byte-recompile-directory
    
, or (from the command line):

   % ../../src/emacs -batch -Q -f batch-byte-compile cc-*.el

, does the problem go away?  If you do a clean build on your Emacs, is
the problem still there?

It would be nice to nail this problem down and kill it completely.

> Nick                                           http://www.inet.net.nz/~nickrob

-- 
Alan.

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

* Re: cc-mode loads lots of files.
  2007-01-06  0:41 cc-mode loads lots of files Nick Roberts
  2007-01-06 10:13 ` Alan Mackenzie
@ 2007-01-06 10:37 ` Andreas Schwab
  2007-01-06 11:11   ` Nick Roberts
  1 sibling, 1 reply; 4+ messages in thread
From: Andreas Schwab @ 2007-01-06 10:37 UTC (permalink / raw)
  Cc: emacs-devel

Nick Roberts <nickrob@snap.net.nz> writes:

> With current CVS Emacs if I open a C file in a buffer, I get:
>
> Loading cl-macs...done
> Loading bytecomp...done
> Loading byte-opt...done
> Loading cl-seq...done
> Loading cl-extra...done
>
> I don't know if this is due to the recent changes but do I really need all
> these just to look at a file? (apologies if it's been previously explained)

That does not happen with a build of Emacs that was compiled with "make
bootstrap".  Most likely your cc-*.elc files need rebuilding.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

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

* Re: cc-mode loads lots of files.
  2007-01-06 10:37 ` Andreas Schwab
@ 2007-01-06 11:11   ` Nick Roberts
  0 siblings, 0 replies; 4+ messages in thread
From: Nick Roberts @ 2007-01-06 11:11 UTC (permalink / raw)
  Cc: emacs-devel

 > > With current CVS Emacs if I open a C file in a buffer, I get:
 > >
 > > Loading cl-macs...done
 > > Loading bytecomp...done
 > > Loading byte-opt...done
 > > Loading cl-seq...done
 > > Loading cl-extra...done
 > >
 > > I don't know if this is due to the recent changes but do I really need all
 > > these just to look at a file? (apologies if it's been previously explained)
 > 
 > That does not happen with a build of Emacs that was compiled with "make
 > bootstrap".  Most likely your cc-*.elc files need rebuilding.

OK, I see - no that's not true - I don't see at all, but you're right.

-- 
Nick                                           http://www.inet.net.nz/~nickrob

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

end of thread, other threads:[~2007-01-06 11:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-06  0:41 cc-mode loads lots of files Nick Roberts
2007-01-06 10:13 ` Alan Mackenzie
2007-01-06 10:37 ` Andreas Schwab
2007-01-06 11:11   ` Nick Roberts

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