From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bernardo Newsgroups: gmane.emacs.help Subject: Re: Indentation settings problems Date: Wed, 23 Sep 2009 08:54:07 +1000 Message-ID: <4AB9558F.4090602@pobox.com> References: <25520490.post@talk.nabble.com> <4AB58B81.7060806@pobox.com> <25530140.post@talk.nabble.com> <25530846.post@talk.nabble.com> Reply-To: bernardo.bacic@pobox.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1253660119 24390 80.91.229.12 (22 Sep 2009 22:55:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Sep 2009 22:55:19 +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 Sep 23 00:55:12 2009 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 1MqEGN-0007bq-UE for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Sep 2009 00:55:12 +0200 Original-Received: from localhost ([127.0.0.1]:56839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqEGN-0000U3-De for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Sep 2009 18:55:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqEG1-0000Tp-Uu for help-gnu-emacs@gnu.org; Tue, 22 Sep 2009 18:54:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqEFx-0000TP-4O for Help-gnu-emacs@gnu.org; Tue, 22 Sep 2009 18:54:49 -0400 Original-Received: from [199.232.76.173] (port=60225 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqEFw-0000TM-Ui for Help-gnu-emacs@gnu.org; Tue, 22 Sep 2009 18:54:44 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:45110 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqEFw-0008OD-HE for Help-gnu-emacs@gnu.org; Tue, 22 Sep 2009 18:54:44 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id D8F215B60D for ; Tue, 22 Sep 2009 18:54:43 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:reply-to:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; s=sasl; bh= lTkLwMxNilxIOUYqLwvyNNckGsE=; b=F5Lw8dbpHs68qLJbKPDrg8nQA+meTwVJ 4+rPt2sCZSf6617RIRsI/ZcD/vnIV2kYYHQ6DvwM62D6iKn9oJJ47R8sVnT+/miR TeVuD2OrhfKA2bS5P0WBSIQ6J1rk1fyDzmi8me4mvamxC7IfAXw/ub7Kxrbxl5+K 8LtXhphZd+Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:reply-to:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=eV33p7 gVhBBFN6054r3zBax7laq6Bbz5bM+ZdlEbOkffvFGNEaqod41Cnyuq+xWt4Pg8XN dioczTKAOKGZCGu0UAPaBymfG5pggWsdC/Nbyk4htRtlOrcDYaN8VAHRezlCiqxm qxbCSkXXDFpoX5NRmEK0+I0qfhqwjbv0Q1uHI= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id D5CBD5B60C for ; Tue, 22 Sep 2009 18:54:43 -0400 (EDT) Original-Received: from [192.168.1.10] (unknown [115.70.111.33]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 1DCB55B609 for ; Tue, 22 Sep 2009 18:54:42 -0400 (EDT) User-Agent: Thunderbird 2.0.0.23 (X11/20090812) In-Reply-To: <25530846.post@talk.nabble.com> X-Pobox-Relay-ID: EB1C706C-A7CA-11DE-B66A-8B19076EA04E-14340206!a-pb-sasl-sd.pobox.com X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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:68397 Archived-At: TriKri said the following on 09/23/09 04:02: > I still want to change the indentation. I added the code (setq-default > tab-width 4 indent-tabs-mode t) to the file (\AppData\Roaming\.emacs in my > user folder in windows) as you said, but it doesn't work. What can be wrong? > And why can't I change it through Options->Customize Emacs->Top-level > Customization Group? To me it seems like something is wrong if nothing of > this works. What does it sound like to you? > > I also tried pasting the code in my .cpp file, and evaluating it by placing > the cursor after it and pressing C-x C-e (now I understand how C-x C-e works > by the way). The minibar then displayed t; I guess that should be right. It > still didn't work after that; the indentation was two spaces, just as > before. The file I'm editing is a C++ file; I guess the indentation should > work for those files as well. > did you replace spaces with tabs? (as someone else suggested) what does M-x describe-variable RET c-basic-offset RET say?