From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Martin" Newsgroups: gmane.emacs.help Subject: Force spaces instead of tabs Date: 10 Oct 2006 00:04:46 -0700 Organization: http://groups.google.com Message-ID: <1160463886.894724.96810@i42g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1160466053 4994 80.91.229.2 (10 Oct 2006 07:40:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 Oct 2006 07:40:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 10 09:40:50 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 1GXCE4-000259-BN for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Oct 2006 09:40:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GXCE3-0000HY-Qw for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Oct 2006 03:40:31 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!i42g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 194.132.104.253 Original-X-Trace: posting.google.com 1160463891 6408 127.0.0.1 (10 Oct 2006 07:04:51 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 10 Oct 2006 07:04:51 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.01 (Windows NT 5.0; U; sv),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 CMTPROXY2 Complaints-To: groups-abuse@google.com Injection-Info: i42g2000cwa.googlegroups.com; posting-host=194.132.104.253; posting-account=RMBQCgwAAABu7Fjaa-zj5uoGaJolMDO_ Original-Xref: shelby.stanford.edu gnu.emacs.help:142335 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:37954 Archived-At: 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! } ; } }