From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: cc mode / font-lock help Date: Wed, 26 Aug 2009 14:30:50 +0000 Message-ID: <20090826143050.GA3854@muc.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1251297910 17035 80.91.229.12 (26 Aug 2009 14:45:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Aug 2009 14:45:10 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Paul Ellis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 26 16:45:03 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MgJkE-000669-1X for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Aug 2009 16:45:02 +0200 Original-Received: from localhost ([127.0.0.1]:48203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgJkC-0004ek-R1 for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Aug 2009 10:45:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgJTg-0003jz-9h for help-gnu-emacs@gnu.org; Wed, 26 Aug 2009 10:27:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgJTb-0003eo-6q for help-gnu-emacs@gnu.org; Wed, 26 Aug 2009 10:27:55 -0400 Original-Received: from [199.232.76.173] (port=44525 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgJTb-0003eO-1A for help-gnu-emacs@gnu.org; Wed, 26 Aug 2009 10:27:51 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:3868 helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MgJTZ-0008CB-Vr for help-gnu-emacs@gnu.org; Wed, 26 Aug 2009 10:27:50 -0400 Original-Received: (qmail 86191 invoked by uid 3782); 26 Aug 2009 14:27:47 -0000 Original-Received: from acm.muc.de (pD9E23547.dip.t-dialin.net [217.226.53.71]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Wed, 26 Aug 2009 16:27:45 +0200 Original-Received: (qmail 7422 invoked by uid 1000); 26 Aug 2009 14:30:50 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.6-4.9 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67560 Archived-At: 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).