[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CC Mode 5.31.3 (C/l); defined not emphasised
From: |
Peter Dyballa |
Subject: |
CC Mode 5.31.3 (C/l); defined not emphasised |
Date: |
Mon, 13 Mar 2006 15:27:34 +0100 |
Hello!
In a patched version of xv.h I have:
/* lots of things don't have <malloc.h> */
/* A/UX systems include it from stdlib, from Xos.h */
#ifndef VMS /* VMS hates multi-line '#if's */
# if !defined(ibm032) && \
!defined(__convex__) && \
!(defined(vax) && !defined(ultrix)) && \
!defined(mips) && \
!defined(apollo) && \
!defined(pyr) && \
!defined(__UMAXV__) && \
!defined(bsd43) && \
!defined(aux) && \
!defined(__bsdi__) && \
!defined(sequent) && \
!defined(__FreeBSD__) && \
!defined(__OpenBSD__)
# if defined(hp300) || defined(hp800) || defined(NeXT)
# include <sys/malloc.h> /* it's in 'sys' on HPs
and NeXT */
# else
# include <malloc.h>
# endif
# endif
#endif /* !VMS */
In this example only the first seven 'defined' (up to and including
defined(pyr)) are emphasised with font-lock-preprocessor-face, then
again those in the '# if defined(hp300)' line. Alan Mackenzie
explained that this is due to "problem with jit-lock-mode, which
doesn't cope very well with language constructs which extend over
several lines. You can see this by
disabling jit-lock-mode with (setq font-lock-support-mode nil), after
which the entire file fontifies properly." The last observation I can
make, too. My set-up is:
(cond ((fboundp 'global-font-lock-mode)
;; Turn on font-lock in all modes that support it
(global-font-lock-mode 1)
; (setq font-lock-multiline 'undecided')
(setq jit-lock-stealth-verbose t)
(setq jit-lock-mode t)
; (setq jit-lock-stealth-load 80)
;; Maximum colors
(setq font-lock-maximum-decoration t)))
and
'(font-lock-beginning-of-syntax-function nil t)
'(font-lock-global-modes (quote (not)))
'(font-lock-keywords-case-fold-search nil t)
'(font-lock-keywords-only nil t)
'(font-lock-mark-block-function nil t)
'(font-lock-maximum-decoration t)
'(global-font-lock-mode t nil (font-core))
--
Greetings
Pete
Windows, c'est un peu comme le beaujolais nouveau: à chaque nouvelle
cuvée on sait que ce sera dégueulasse, mais on en prend quand même,
par masochisme.
- CC Mode 5.31.3 (C/l); defined not emphasised,
Peter Dyballa <=