On 2008-04-29 21:41 +0200, Dr. ERDI Gergo wrote:

> I've tried both the '-q' and the '-Q' options, I even tried running
> emacs22 as a user that never ever started emacs22 before. But still
> there's no syntax highlighting in c-mode.
>
> 21:41:10 [EMAIL PROTECTED] ~]$ ls /etc/emacs/site-start.d/
> 00debian-vars.el          50festival.el       50slime.el
> 20apel.el                 50flim.el           50speedbar.el
> 40mule-ucs.el             50gcl.el            50tramp.el
> 50ada-mode.el             50gettext.el        50vc-svn.el
> 50autoconf.el             50gforth.el         50w3m-el.el
> 50cedet-common.el         50gtk-doc-tools.el  50xae.el
> 50debbugs-el.el           50haskell-mode.el   51debian-el.el
> 50debian-el.el            50ilisp.el          51debian-el.el.dpkg-old
> 50devscripts-el.el        50mit-scheme.el     51ede.el
> 50dictionaries-common.el  50psvn.el           51semi.el
> 50dpkg-dev-el.el          50pymacs.el         51speedbar.el
> 50eieio.el                50python-mode.el    52semantic.el
> 50elserv.el               50quack-el.el       60hyperspec.el
> 50emacs-goodies-el.el     50ruby1.8-elisp.el
> 50erlang.el               50sawfish.el
> 21:41:24 [EMAIL PROTECTED] ~]$ ls /etc/emacs22/site-start.d/
> 00debian-vars.elc  50auctex.el  50psgml-init.el  50tdtd.el@
> 60nxml-mode.el

Quite a lot of files, but they are not loaded when you start Emacs with
the '-Q' option.  The add-on packages only influence the value of
load-path then, and I don't see offhand how that turn off font-lock in C
mode buffers.

> Any other ideas?

No real idea what the problem may be, but here are some things you can
try (all with emacs22 -Q):

- open a C file and see what appears in the *Messages* buffer.  Also,
  what is the value of the font-lock-mode variable then (probably nil,
  but let's make sure)?  And what is the value of c-mode-common-hook?

- Turn off global font lock mode with M-x global-font-lock-mode and then
  open a C file.  Is font-lock-mode enabled then?

- Ensure that you're using the cc-mode version that comes with emacs22,
  e.g. with `locate cc-mode.el'.

Sven



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to