all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Paul Ellis <pellis@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: cc mode / font-lock help
Date: Wed, 26 Aug 2009 14:30:50 +0000	[thread overview]
Message-ID: <20090826143050.GA3854@muc.de> (raw)
In-Reply-To: <d00999500908251352x26c36eeawe055f6f88282cecc@mail.gmail.com>

Hi, Paul!

On Tue, Aug 25, 2009 at 01:52:58PM -0700, Paul Ellis wrote:
> I recently upgraded from version 21.3.1 to version 23.1.1.

A good move.

> I am using the ctypes plugin to enhance the syntax highlighting in
> cc-mode and it appears to have stopped working in version 23.1.1.

I.e., you've changed from CC Mode 5.28 to CC Mode 5.31.7.  The
fontification ("syntax highliting") was rewritten from scratch for CC
Mode 5.30, so it's not too surprising that ctypes inow doesn't work.

Would you please tell me exactly what the "ctypes plugin" is.
Presumably it's a file called something like "ctypes.el".  Where can I
get a copy of this file from?

Have you configured CC Mode at all in your .emacs?  If so, would you
please dump your CC Mode's configuration (C-c C-b, followed by cutting and
pasting to an email buffer) and post it here.

Then please give me a (short) source file and an EXACT recipe to
reproduce the problem.  With any luck, it should be fairly easy to fix.

> I am not very familiar with lisp, but from what I can gather, it adds
> entries to the c-font-lock-extra-types variable in cc-mode, and that
> functionality still works.  Once the list is created, however, none of
> the items in the list for c-font-lock-extra-types are highlighted.

Hmm.  That sounds bad.  ;-(

> I have tried adding keywords using the font-lock-add-keywords function
> in my .emacs file and that seems to work just fine.  All of the
> default syntax highlighting in cc-mode also seems to work fine.  What
> seems to be broken for me is only the c-font-lock-extra-types list.

That sounds like it will be really easy to fix.  :-)

> As a side note, in trying to figure this out on my own, I noticed that
> the cc-mode that came with version 23.1.1 is much newer than the last
> released package on http://cc-mode.sourceforge.net/ .....

This is sadly true.  However, the CVS repository at SourceForge is still
the prime site for development, and the CVS HEAD and BRANCH_5_31 branch
contain all recent changes (mostly bug fixes), apart from specific GNU
EMACS adaptations.  There are several difficult bugs outstanding, and
I've been intending for some while to make another release when I've
fixed these.

But you're right.  Another CC Mode stand-alone release is long overdue.
Maybe I'll just release anyway.  I think I should clarify cc-mode.sf.net
too.  Sorry about all this.

> .... and it seems impossible to find an updated version of the ctypes
> plugin.  Does anyone happen to have a link to the up-to-date websites
> for these packages, if they exist?

Again, I don't know what the ctypes plugin is.  If you don't know a URL
for it, would you send the source to my personal email address, please.

-- 
Alan Mackenzie (Nuremberg, Germany).




      reply	other threads:[~2009-08-26 14:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-25 20:52 cc mode / font-lock help Paul Ellis
2009-08-26 14:30 ` Alan Mackenzie [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090826143050.GA3854@muc.de \
    --to=acm@muc.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=pellis@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.