From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: sgm@Pavilion.domain.invalid (Sean G. McLaughlin) Newsgroups: gmane.emacs.help Subject: Re: indention in cc-mode not as expected Date: Mon, 06 Oct 2008 23:08:47 -0700 Organization: A noiseless patient Spider Message-ID: <87fxn97x8w.fsf@Pavilion.domain.invalid> References: <40fbdde9-48c6-4c37-816b-b7e3b3f82d64@p31g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1223389748 20654 80.91.229.12 (7 Oct 2008 14:29:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2008 14:29:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 07 16:30:04 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KnDYx-0006jr-EN for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Oct 2008 16:29:23 +0200 Original-Received: from localhost ([127.0.0.1]:59242 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnDXt-0003Wk-OY for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Oct 2008 10:28:17 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news.motzarella.org!motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Original-X-Trace: reader.motzarella.org U2FsdGVkX1+aq9qvzjoU7jeiMGHp9WJ8EO4jA/h8UAJRU2Es0WV/pgpY7wJRkY77NNCaBkvVJJqMA9whKDndUUhsgNcnwgXI44crsy0jFku1xvnVN+uNCUBLWlx51Cxp41Cu15NlNyY= Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Tue, 7 Oct 2008 06:08:41 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1+cQhHPhwBuC+lSPeRGbPPH Cancel-Lock: sha1:xiiDb2XYz4BZI6oF7CxqBGio5Aw= sha1:8IdczaCZm43rD+YEYz2zsJFKR+c= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:163125 X-Mailman-Approved-At: Tue, 07 Oct 2008 10:26:25 -0400 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:58481 Archived-At: mfl writes: > I tried different values for these options: c-tabs-always-indent, c- > insert-tab-function, but none of them worked. > Can someone please help me on this? or is there a function to do "tab- > to-the-left" for a region in emacs? > Thanks. You aren't taking into account the indenting *style*. The default is GNU-style, which is distinguished by the half-indented braces you are getting. The style you want looks most like BSD, which you can set with (setq c-default-style "bsd")