From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin Newsgroups: gmane.emacs.help Subject: Re: Force spaces instead of tabs Date: Tue, 10 Oct 2006 16:30:23 +0200 Organization: none Message-ID: References: <1160463886.894724.96810@i42g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1160491426 13580 80.91.229.2 (10 Oct 2006 14:43:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 Oct 2006 14:43:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 10 16:43:45 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GXInh-00043v-Oc for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Oct 2006 16:41:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GXInh-0005Mj-6O for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Oct 2006 10:41:45 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Shakespeare: "The first thing we do, let's kill all the lawyers." -- King Henry VI, Part 2, IV.2 User-Agent: Emacs Gnus Cancel-Lock: sha1:+RRRx8N/jJnrzpBE/33xvmk1adM= Original-Lines: 40 Original-NNTP-Posting-Date: 10 Oct 2006 16:30:32 CEST Original-NNTP-Posting-Host: db06843b.newsspool1.arcor-online.net Original-X-Trace: DXC=La?O6ib18]9L2C_`koXfC5ic==]BZ:af>4Fo<]lROoR1^YC2XCjHcb9_AM4RGQC[V:Y=5kO30HmD9J=4G; 7gPWg7^3^OXm3]Mf>n4HjUacX8F9 Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: shelby.stanford.edu gnu.emacs.help:142356 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:37978 Archived-At: >>>>> Martin writes: > Date: 10 Oct 2006 00:04:46 -0700 > > I need to have emacs indent C++ code using only spaces, and no tab > characters. > > I edited the options in the Programming/Languages/C group so that: > C Basic Offset is 3 > C Tab Always Indent is "always indents" > C Insert Tab Function is "insert-tab" > C Syntactic Indentation is non-nil > C Offsets Alist: substatement-open is 0 > > In many cases, the indentation is correct, but when I have several > levels of sub-statements, tab characters are inserted anyway. See the > example below. What other options control this behaviour? > > void B::e() > { > if () > { > ; > if () > { > ; // tab character at beginning of this line! > } > ; > } > } > > Hi, customize the variable indent-tabs-mode. Martin --- parozusa at web dot de