all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marco Gidde <marco.gidde@tiscali.de>
Subject: Re: new syntactic symbols in cc-mode
Date: 16 Aug 2003 00:11:12 +0200	[thread overview]
Message-ID: <lz65kylgfz.fsf@tristan.br-automation.de> (raw)
In-Reply-To: mailman.445.1060950571.29551.help-gnu-emacs@gnu.org

Heiko Gerdau <hg@technosis.de> 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 :-)

  parent reply	other threads:[~2003-08-15 22:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.405.1060848468.29551.help-gnu-emacs@gnu.org>
2003-08-14 12:40 ` new syntactic symbols in cc-mode Alan Mackenzie
2003-08-14 23:06   ` Heiko Gerdau
     [not found]   ` <mailman.435.1060902656.29551.help-gnu-emacs@gnu.org>
2003-08-15  8:16     ` Marco Gidde
2003-08-15 12:13       ` Heiko Gerdau
     [not found]       ` <mailman.445.1060950571.29551.help-gnu-emacs@gnu.org>
2003-08-15 22:11         ` Marco Gidde [this message]
2003-08-14  8:03 Heiko Gerdau

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=lz65kylgfz.fsf@tristan.br-automation.de \
    --to=marco.gidde@tiscali.de \
    /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.