[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: Re: C preprocessor directives in asm-mode and ld-scr
From: |
Eli Zaretskii |
Subject: |
Re: address@hidden: Re: C preprocessor directives in asm-mode and ld-script-mode] |
Date: |
Fri, 06 Jan 2006 15:39:22 +0200 |
> Date: Fri, 06 Jan 2006 04:00:06 +0900 (JST)
> To: address@hidden
> Cc: address@hidden, address@hidden
> Subject: Re: C preprocessor directives in asm-mode and ld-script-mode
> From: Masatake YAMATO <address@hidden>
>
> > Please forgive my delay in responding.
> >
> > > In order to fontificate C preprocessor directives well in
> > asm-mode and
> > > ld-script-mode, I'd like to make c-font-lock-keywords-1 in GNU
> > Emacs
> > > 21.2 revive as `cpp-font-lock-keywords'.
> >
> > I guess we should do this. Could you send the patch
> > and change log entries?
>
> Sorry to be late. A bit busy now.
>
> I have changed nothing since my last post.
> Here, I send my patch again.
>
>
> 2006-01-06 Masatake YAMATO <address@hidden>
>
> * font-lock.el (cpp-font-lock-keywords): Font lock keywords for
> C preprocessor forward ported from GNU Emacs 21.2.
>
> * progmodes/asm-mode.el (asm-font-lock-keywords): Use
> `cpp-font-lock-keywords'.
>
> * progmodes/ld-script.el (ld-script-font-lock-keywords): Ditto.
Unfortunately, I couldn't install this: your definition of
cpp-font-lock-keywords in font-lock.el causes regex-opt to be loaded,
and that in turn triggers an error message from eval.c:do_autoload,
like this:
Loading font-lock...
Attempt to autoload regexp-opt-depth while preparing to dump
because regex-opt is not preloaded. This breaks the build of Emacs,
since font-lock is now preloaded in loadup.el.
So I think you need to slightly change your code to defer the calls to
regex-opt to run time.
- Re: address@hidden: Re: C preprocessor directives in asm-mode and ld-script-mode],
Eli Zaretskii <=