From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Guido Van Hoecke Newsgroups: gmane.emacs.help Subject: Re: (fwd) Re: Trying to use only tabs for indenting c# files - csharp-mode error? Date: Wed, 11 Jan 2012 13:38:39 +0100 Message-ID: References: <20120111093457.53318.qmail@mail.muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1326285564 27599 80.91.229.12 (11 Jan 2012 12:39:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Jan 2012 12:39:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 11 13:39:20 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RkxSZ-0006De-E6 for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jan 2012 13:39:20 +0100 Original-Received: from localhost ([::1]:45974 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkxSY-0004RG-KB for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jan 2012 07:39:18 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:36048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkxSL-0004QO-7r for help-gnu-emacs@gnu.org; Wed, 11 Jan 2012 07:39:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkxSG-0003d0-U0 for help-gnu-emacs@gnu.org; Wed, 11 Jan 2012 07:39:05 -0500 Original-Received: from mail-yw0-f41.google.com ([209.85.213.41]:47493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkxSG-0003cg-RR for help-gnu-emacs@gnu.org; Wed, 11 Jan 2012 07:39:00 -0500 Original-Received: by yhoo21 with SMTP id o21so282935yho.0 for ; Wed, 11 Jan 2012 04:39:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Tg2ZX6rECaOdv5p3LwrnybaRYNOBRzSpt9RQHuU6v5k=; b=OsO78Va4M6CytwiDu3j90Zf9X1VRAMhUDD8ohpKCZSoLbZom9H6IAvlljpUz6bxF9X XfTo6tVrpurTQbb5ATxVCAkK6vGYMl/vWgfyaonsHa1akLuuIfjRdo0hApK/cfmZl+qz zvXQ/T5Ab/s1nE8leRCZIN9azV6Ed421B00vo= Original-Received: by 10.236.124.206 with SMTP id x54mr22271906yhh.112.1326285540095; Wed, 11 Jan 2012 04:39:00 -0800 (PST) Original-Received: by 10.147.182.7 with HTTP; Wed, 11 Jan 2012 04:38:39 -0800 (PST) In-Reply-To: <20120111093457.53318.qmail@mail.muc.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83456 Archived-At: Hi Alan, On Wed, Jan 11, 2012 at 10:34, Alan Mackenzie wrote: >> The tab-width is 8, >> indent-tabs-mode is t >> and still, it uses spaces to indent, and only two of them. >> So obviously neither tab-width nor indent-tabs-mode are obeyed nor >> respected! > >> Please advise, > > C# mode is derived from CC Mode, so read the CC Mode manual. =C2=A0:-) > However, for your specific problem, the variable c-basic-offset needs > to be set to 8. =C2=A0Currently, it looks like it is 2. That was the missing piece of information! With c-basic-offset set to 8, the requested behaviour is obtained. Thanks Alan, Guido -- That must be wonderful: I don't understand it at all. -- Moliere http://vanhoecke.org ... and go2 places!