From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marco Gidde Newsgroups: gmane.emacs.help Subject: Re: new syntactic symbols in cc-mode Date: 16 Aug 2003 00:11:12 +0200 Organization: Linux Private Site Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1060985782 28216 80.91.224.253 (15 Aug 2003 22:16:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Aug 2003 22:16:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 16 00:16:21 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19nmrt-0000W7-00 for ; Sat, 16 Aug 2003 00:16:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19nmr6-0008Qm-L5 for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Aug 2003 18:15:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!news.tiscali.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-NNTP-Posting-Host: p213.54.23.154.tisdip.tiscali.de Original-X-Trace: ulysses.news.tiscali.de 1060985474 69195 213.54.23.154 (15 Aug 2003 22:11:14 GMT) Original-X-Complaints-To: abuse@tiscali.de Original-NNTP-Posting-Date: Fri, 15 Aug 2003 22:11:14 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:115930 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11848 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11848 Heiko Gerdau writes: > If you add "signals" to the definition of 'c-protection-kwds' in > 'cc-lang.el' ( and don't use the precompiled cc-*.elc) it works fine. > > Unfortunately if you add any keyword containing a blank (like "public > slots") it does not work, although the generated regular expression in > variable 'c-opt-access-key' would find it. I don't know where the "blank" > problem comes from. I debugged the code a bit and found that the parser jumps back and forth not only by character but sometimes also by words (take a look at c-backward-sexp). I am far away from understanding what's going on there, but it seems to help if you not only add "public slots" but also "slots" to the regular expression. While typing your code the parser identifies the "public slots:" as a label and indents it like that, but c-indent-defun works (most of the time :-)