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: Is there a mode that helps enforce coding guidelines? Date: Sun, 1 Jun 2003 21:45:19 +0000 Organization: muc.de e.V. -- private internet access Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <4hfBa.57$TO5.3660@nnrp1.ozemail.com.au> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1054530981 23032 80.91.224.249 (2 Jun 2003 05:16:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2003 05:16:21 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 02 07:16:19 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19MhgB-0005z9-00 for ; Mon, 02 Jun 2003 07:16:19 +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 19MhgM-0001Ej-HN for gnu-help-gnu-emacs@m.gmane.org; Mon, 02 Jun 2003 01:16:30 -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.belwue.de!informatik.tu-muenchen.de!news.muc.de!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: acm.muc.de Original-X-Trace: marvin.muc.de 1054530355 49860 193.149.49.134 (2 Jun 2003 05:05:55 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: 2 Jun 2003 05:05:55 GMT User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686)) Original-Xref: shelby.stanford.edu comp.emacs:79483 gnu.emacs.help:113964 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10458 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10458 In comp.emacs Peter Milliken wrote: [ .... ] > I personally find coding templates a big help when moving between > different coding standards i.e. one project wants the opening { on the > same line as the if statement, the next project wants it on the line > following, the next project doesn't want one at all unless there are > multiple statements after the if! :-) All of these and more are easily > configurable and available with minimal work. After? You mean the stuff that gets executed when the condition evaluates to non-zero? Don't confuse people! There is always exactly one statement so bounded by an 'if'. Sometimes this statement is empty (i.e. a bare semicolon), often it is a compound statement. But it is always one statement. For some reason, people who write coding standards frequently don't understand this, and it drives me crazy! > Peter -- 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").