From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: TriKri Newsgroups: gmane.emacs.help Subject: Re: Indentation settings problems Date: Sat, 3 Oct 2009 12:56:06 -0700 (PDT) Message-ID: <25732211.post@talk.nabble.com> References: <25520490.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1254599804 17684 80.91.229.12 (3 Oct 2009 19:56:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Oct 2009 19:56:44 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 03 21:56:37 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 1MuAia-0005UG-Fe for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Oct 2009 21:56:36 +0200 Original-Received: from localhost ([127.0.0.1]:59573 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MuAiZ-0001zw-Oz for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Oct 2009 15:56:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MuAiD-0001zN-H6 for help-gnu-emacs@gnu.org; Sat, 03 Oct 2009 15:56:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MuAi9-0001wY-TH for Help-gnu-emacs@gnu.org; Sat, 03 Oct 2009 15:56:13 -0400 Original-Received: from [199.232.76.173] (port=59512 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MuAi9-0001wJ-N2 for Help-gnu-emacs@gnu.org; Sat, 03 Oct 2009 15:56:09 -0400 Original-Received: from kuber.nabble.com ([216.139.236.158]:33904) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MuAi9-0005Ij-8W for Help-gnu-emacs@gnu.org; Sat, 03 Oct 2009 15:56:09 -0400 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MuAi6-00054r-PJ for Help-gnu-emacs@gnu.org; Sat, 03 Oct 2009 12:56:06 -0700 In-Reply-To: <25520490.post@talk.nabble.com> X-Nabble-From: kristoferkrus@hotmail.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:68648 Archived-At: I have a question about another indentation setting: When you set indent-tabs-mode to t, multiple spaces are replaced with tabs. But what if you only want the part of the indentation that comes from the c-basic-offset to be tabs, and the rest spaces? Say for example that we have the code int main() { if (foo && bar) { foo_bar(); } return 0; } You can see that the indentation consists of only tabs but before "bar) {". This is because bar should always be lined up with foo, hence bar has to be 4 spaces from the start of "if". Tabs can't be used here, since opening the code in another text editor with another tab width would result in a misalignment between foo and bar. With my settings, these 4 spaces would be replaced with a tab, since my tab width is set to 4. But this part of the indentation should always have the width 4 which it doesn't if tabs are used here. So, how can I make these 4 spaces be precisely spaces, and not become a tab? Is there any setting for this? -- View this message in context: http://www.nabble.com/Indentation-settings-problems-tp25520490p25732211.html Sent from the Emacs - Help mailing list archive at Nabble.com.