From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Booted Cat" Newsgroups: gmane.emacs.help Subject: Re: Tabs for indentation, spaces for alignment? Date: 6 Dec 2006 23:09:27 -0800 Organization: http://groups.google.com Message-ID: <1165475367.499168.3340@73g2000cwn.googlegroups.com> References: NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1165477278 27265 80.91.229.10 (7 Dec 2006 07:41:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Dec 2006 07:41:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 07 08:41:17 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GsDsT-0005u1-Vg for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Dec 2006 08:41:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GsDsT-0008Hd-IF for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Dec 2006 02:41:09 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!73g2000cwn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: 222.188.133.19 Original-X-Trace: posting.google.com 1165475395 11580 127.0.0.1 (7 Dec 2006 07:09:55 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 7 Dec 2006 07:09:55 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20061126 Minefield/3.0a1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 73g2000cwn.googlegroups.com; posting-host=222.188.133.19; posting-account=uM1nxwwAAADPGl3eCnViTOHFNUTYdTy2 Original-Xref: shelby.stanford.edu gnu.emacs.help:143705 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:39307 Archived-At: Caught you again baby! Anders Kaseorg wrote: > As far as I can tell, Emacs is able to use either only spaces for > indentation and alignment: > block { > ....block { > ........some_really_long_function_name(arg, > .......................................arg); > or an "optimal" mixture of tabs and spaces for indentation and > alignment: > block { > --->block { > --->--->some_really_long_function_name(arg, > --->--->--->--->--->--->--->--->--->...arg); > which, of course, might not be so "optimal" to someone with a different > tab width: > block { > ----->block { > ----->----->some_really_long_function_name(arg, > ----->----->----->----->----->----->----->----->----->...arg); > > You may prefer spaces or tabs for indentation, and that's fine, but you > have to agree that using tabs for alignment in this way is broken. What > I really want is to use tabs for indentation and spaces for alignment: > block { > --->block { > --->--->some_really_long_function_name(arg, > --->--->...............................arg); > so that the indentation characters are semantically correct, and the > layout is independent of tab width: > block { > ----->block { > ----->----->some_really_long_function_name(arg, > ----->----->...............................arg); > > Is there any way to get this behavior out of Emacs? > > Anders