From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: C formatting Date: Sat, 28 Dec 2002 14:03:02 +0100 Organization: University of Dortmund, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84isxe5m9l.fsf@lucy.cs.uni-dortmund.de> References: <3E0CED7C.7020002@free.fr> <6Q6P9.169$fA3.25203@newsfep1-gui.server.ntli.net> <3E0D9996.3050603@free.fr> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1041080877 18172 80.91.224.249 (28 Dec 2002 13:07:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 28 Dec 2002 13:07:57 +0000 (UTC) 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 18SGh1-0004ix-00 for ; Sat, 28 Dec 2002 14:07:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18SGfP-000440-03 for gnu-help-gnu-emacs@m.gmane.org; Sat, 28 Dec 2002 08:06:15 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!p50876b5f.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: p50876b5f.dip.t-dialin.net (80.135.107.95) Original-X-Trace: fu-berlin.de 1041080595 8293195 80.135.107.95 (16 [73968]) User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:qQ0jgWbXy6jNIdgE89e5VdEMPc8= Original-Xref: shelby.stanford.edu gnu.emacs.help:108543 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:5072 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5072 Oodini writes: > Well, it doesn't do exactly what I want. > After the "if", when I press Enter, Emacs put an extra indent, whereas > I want it to put the cursor under the "if". I guess it supposes I put > the opening brace af the end of the line where there is the "if". Did you try typing the open brace? It might move to the left. If it doesn't, you can still try TAB after typing the open brace. I guess if there is no brace after if, you do want the next line to be indented. So you want: if (some_condition) some_action; instead of if (some_condition) some_action; Right? Obviously, Emacs can't know whether you will be typing a brace or not, after you hit RET. -- Ambibibentists unite!