From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "ozark" Newsgroups: gmane.emacs.help Subject: auto-newline before opening brace following "if","else" and "for" Date: 18 Oct 2005 23:19:12 -0700 Organization: http://groups.google.com Message-ID: <1129702752.669786.195580@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1129704033 32545 80.91.229.2 (19 Oct 2005 06:40:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Oct 2005 06:40:33 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 19 08:40:32 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ES7cL-000689-Td for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Oct 2005 08:40:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ES7cK-0002CN-8g for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Oct 2005 02:40:04 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 11 Original-NNTP-Posting-Host: 61.11.72.86 Original-X-Trace: posting.google.com 1129702757 21314 127.0.0.1 (19 Oct 2005 06:19:17 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 19 Oct 2005 06:19:17 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 tnl1.cmi.ac.in:3128 (squid/2.5.STABLE9) Complaints-To: groups-abuse@google.com Injection-Info: o13g2000cwo.googlegroups.com; posting-host=61.11.72.86; posting-account=6JEXCA0AAAD6TVMvVgewLoy7tVXfWGoa Original-Xref: shelby.stanford.edu gnu.emacs.help:134783 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:30366 Archived-At: I'm using C++-mode, with auto-newline turned on ("C++/ah Abbrev", it shows). c-set-style is set to gnu. A newline is automatically inserted before and after an opening brace if it follows a function name. However, when the brace is after an "if" or an "else" or a "for", it places the brace on the same line and only inserts a newline after it, i.e, it doesn't insert the newline before the brace. Is this default behaviour? How do I change it?