[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(void-variable c-font-lock-keywords-3)
From: |
Thorsten Bonow |
Subject: |
(void-variable c-font-lock-keywords-3) |
Date: |
Sat, 22 Oct 2005 16:25:08 +0200 (CEST) |
Hi,
I get a strange bug related to font-locking and cc-mode:
If I call emacs via
emacs -Q ./test.c
and call global-font-lock-mode, everything works fine.
But if I start with
emacs -Q
only, call global-font-lock-mode and load the file test.c afterwards,
font-locking fails with
File mode specification error: (void-variable c-font-lock-keywords-3)
With debug-on-error enabled I get:
####################################################################
Debugger entered--Lisp error: (void-variable c-font-lock-keywords-3)
eval(c-font-lock-keywords-3)
font-lock-eval-keywords(c-font-lock-keywords-3)
font-lock-set-defaults()
font-lock-mode-internal(t)
font-lock-default-function(t)
font-lock-mode()
turn-on-font-lock()
turn-on-font-lock-if-enabled()
global-font-lock-mode-enable-in-buffers()
run-hooks(after-change-major-mode-hook)
run-mode-hooks(c-mode-common-hook c-mode-hook)
c-mode()
set-auto-mode-0(c-mode nil)
set-auto-mode()
normal-mode(t)
after-find-file(nil t)
find-file-noselect-1(#<buffer test.c> "/usr/local/src/emacs/emacs-cvs/test.c"
nil nil "/usr/local/src/emacs/emacs-cvs/test.c" (22576 776))
find-file-noselect("/usr/local/src/emacs/emacs-cvs/test.c" nil nil t)
find-file("/usr/local/src/emacs/emacs-cvs/test.c" t)
call-interactively(find-file)
####################################################################
This is the dummy C file I used for reproducing the bug:
####################################################################
#include <stdio.h>
main()
{}
####################################################################
My Emacs is up to date, compiled with GTK:
../emacs/configure --with-gtk && make bootstrap
Toto
--
Contact information and PGP key at
http://www-users.rwth-aachen.de/thorsten.bonow
Sleep came slower than a frigid woman.
Friedman, Kinky (1993), Greenwich Killing Time. New York (Wings
Books), 93
- (void-variable c-font-lock-keywords-3),
Thorsten Bonow <=