From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: mfl Newsgroups: gmane.emacs.help Subject: indention in cc-mode not as expected Date: Mon, 6 Oct 2008 21:18:38 -0700 (PDT) Organization: http://groups.google.com Message-ID: <40fbdde9-48c6-4c37-816b-b7e3b3f82d64@p31g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1223389680 20352 80.91.229.12 (7 Oct 2008 14:28:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2008 14:28:00 +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:28:48 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 1KnDY7-0006PN-BJ for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Oct 2008 16:28:31 +0200 Original-Received: from localhost ([127.0.0.1]:58805 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnDX3-0002qv-OA for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Oct 2008 10:27:25 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!p31g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-NNTP-Posting-Host: 72.222.132.202 Original-X-Trace: posting.google.com 1223353118 32712 127.0.0.1 (7 Oct 2008 04:18:38 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 7 Oct 2008 04:18:38 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p31g2000prf.googlegroups.com; posting-host=72.222.132.202; 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:163123 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:58480 Archived-At: I am trying to indent the following code using c-indent-region void foo() { if(true) { foo1(); foo2(); } } I want to get the following: void foo() { if(true) { foo1(); foo2(); } } However, c-indent-region keeps generating the following: void foo() { if(true) { foo1(); foo2(); } } 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.