GNU bug report logs - #9448
24.0.50; Comments in Awk scripts not fontified with comment face

Previous Next

Packages: emacs, cc-mode;

Reported by: Eli Zaretskii <eliz <at> gnu.org>

Date: Tue, 6 Sep 2011 04:32:02 UTC

Severity: normal

Found in version 24.0.50

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 9448 <at> debbugs.gnu.org (full text, mbox):

From: Alan Mackenzie <acm <at> muc.de>
To: 9448 <at> debbugs.gnu.org
Subject: asdf
Date: Wed, 7 Sep 2011 17:01:47 +0000
Hi, Eli and Glenn.

>  emacs -Q
>  C-x C-f foo.awk RET

> Type "# something" (without quotes).  The comment is not highlighted
> in the font-lock-comment face, as expected.  comment-start and
> comment-start-skip seem to have reasonable values.


A bit of binary chopping shows that the bug first became visible after
this change:


  revno: 104401
  committer: Chong Yidong <cyd <at> stupidchicken.com>
  branch nick: trunk
  timestamp: Sat 2011-05-28 13:16:54 -0400
  message:
    Make CC modes inherit from prog-mode.

    * lisp/progmodes/cc-mode.el (c-mode, c++-mode, objc-mode, java-mode)
    (idl-mode, pike-mode, awk-mode): Inherit from prog-mode.


I cannot see anything in the change with looks remotely suspicious,
however.  Except, of course, that AWK Mode is now constructed by a macro
of some complexity, doubly invoked.

Deleting cc-fonts.elc (thus allowing cc-fonts.el to be loaded) gets
fontification of AWK comments working for me, too.

-- 
Alan Mackenzie (Nuremberg, Germany).




This bug report was last modified 13 years and 338 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.