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: howw does work c-special-indent-hook, from cc-engine? Date: Wed, 18 May 2005 15:08:53 +0000 Organization: muc.de e.V. -- private internet access Message-ID: <6qlf6d.36.ln@acm.acm> References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1116447585 29369 80.91.229.2 (18 May 2005 20:19:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 May 2005 20:19:45 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 18 22:19:42 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DYUys-0007zK-Te for geh-help-gnu-emacs@m.gmane.org; Wed, 18 May 2005 22:17:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DYV1N-0001Zd-IX for geh-help-gnu-emacs@m.gmane.org; Wed, 18 May 2005 16:20:01 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news-stu1.dfn.de!news.belwue.de!informatik.tu-muenchen.de!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-NNTP-Posting-Host: acm.muc.de Original-X-Trace: marvin.muc.de 1116442066 14427 193.149.49.134 (18 May 2005 18:47:46 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: 18 May 2005 18:47:46 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:131354 Original-To: help-gnu-emacs@gnu.org 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:26810 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26810 na frederic wrote on Tue, 17 May 2005 13:49:20 +0200 (CEST): > is anyone have a sample of code using c-special-indent-hook to > customize indentation of a derived C-mode. CC Mode itself does. In "gnu" style, the function on c-special-indent-hook (that's c-gnu-impose-minimum) checks that certain lines of code are indented _at least_ one space. c-gnu-impose-minimum is in cc-align.el, and the setting of the hook is in cc-styles.el. Is there anything in particular which is causing problems? -- 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").