From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: new syntactic symbols in cc-mode Date: Thu, 14 Aug 2003 12:40:43 +0000 Organization: muc.de e.V. -- private internet access Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1060869770 11628 80.91.224.253 (14 Aug 2003 14:02:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2003 14:02:50 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 14 16:02:49 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 19nIgi-0007Dl-00 for ; Thu, 14 Aug 2003 16:02:48 +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 19nIec-0007H2-0q for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Aug 2003 10:00:38 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news-FFM2.ecrc.net!news-mue1.dfn.de!news-nue1.dfn.de!newsfeed.r-kom.de!news.m-online.net!news.space.net!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: acm.muc.de Original-X-Trace: marvin.muc.de 1060869237 54200 193.149.49.134 (14 Aug 2003 13:53:57 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: 14 Aug 2003 13:53:57 GMT User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686)) Original-Xref: shelby.stanford.edu gnu.emacs.help:115885 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:11804 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11804 Heiko Gerdau wrote on Thu, 14 Aug 2003 10:03:21 +0200: > Hi, > using the cc-mode package is there a way to create a new syntatic > symbol or to append new keywords to existing syntactic symbols using > the .emacs configuration file? Not really, other than by editing and enhancing CC Mode's source files. But it doesn't really make any sense to "customize" the syntactic symbols list this sort of way - the syntactic symbols are all about indenting code, so you'd have to extend the syntax recognition functions (chiefly c-guess-basic-syntax) anyway. Having gone through all that work, it's trivial by comparison to add one or two syntactic symbols in the source code. > The background is to customize indentation for language extensions not > covered yet. (like Qt's signal and slots). Aren't there any suitable syntactic symbols already? > Thanks for any hint. There's the CC Mode mailing list at > Heiko -- Alan Mackenzie (Munich, Germany) Email: aacm@muuc.dee; to decode, wherever there is a repeated letter (like "aa"), remove half of them (leaving, say, "a").