From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: mfl Newsgroups: gmane.emacs.help Subject: Re: indention in cc-mode not as expected Date: Tue, 7 Oct 2008 11:56:06 -0700 (PDT) Organization: http://groups.google.com Message-ID: <8a973fac-3c0f-4c3a-8cf9-6e5561200187@r15g2000prd.googlegroups.com> References: <40fbdde9-48c6-4c37-816b-b7e3b3f82d64@p31g2000prf.googlegroups.com> <87fxn97x8w.fsf@Pavilion.domain.invalid> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1223408503 3270 80.91.229.12 (7 Oct 2008 19:41:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2008 19:41:43 +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 21:42:41 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 1KnIS0-0001aS-1g for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Oct 2008 21:42:32 +0200 Original-Received: from localhost ([127.0.0.1]:48555 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnIQv-0005Py-CE for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Oct 2008 15:41:25 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!r15g2000prd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: 216.113.168.147 Original-X-Trace: posting.google.com 1223405766 13107 127.0.0.1 (7 Oct 2008 18:56:06 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 7 Oct 2008 18:56:06 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r15g2000prd.googlegroups.com; posting-host=216.113.168.147; posting-account=gQ8BHQoAAABuF1HNKvaLzLpdwP4K6mX- User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.30 Safari/525.13, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:163155 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:58500 Archived-At: On Oct 6, 11:08=A0pm, s...@Pavilion.domain.invalid (Sean G. McLaughlin) wrote: > 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*. =A0The default is > GNU-style, which is distinguished by the half-indented braces you are > getting. =A0The style you want looks most like BSD, which you can set wit= h > > =A0 (setq c-default-style "bsd") Thanks, changing to BSD style works.