From: Intransition Date: 2012-04-29T22:37:15+09:00 Subject: Re: Global variable for spaces per tab? ------=_Part_1408_28337959.1335706632339 Content-Type: multipart/alternative; boundary="----=_Part_1409_4484295.1335706632339" ------=_Part_1409_4484295.1335706632339 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Sunday, April 29, 2012 5:48:14 AM UTC-4, Brian Candler wrote: > > > I'm afraid not, it's entirely application-specific. For example, I > believe vim and emacs let you embed a magic comment in the text file > which says how many spaces to display a tab as. > > For the shell utility, look at the expand(1) manpage. On OSX this says: > > -t tab1,tab2,...,tabn > Set tab stops at column positions tab1, tab2, ..., tabn. > If only > a single number is given, tab stops are set that number of > column > positions apart instead of the default number of 8. > > So in the absence of any better info, I'd go with 8. > Ok, thanks. I might go with 2 b/c it's Ruby indention tradition. OTOH, maybe unindent method should ignore tabs altogether. ------=_Part_1409_4484295.1335706632339 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit On Sunday, April 29, 2012 5:48:14 AM UTC-4, Brian Candler wrote:

I'm afraid not, it's entirely application-specific. For example, I
believe vim and emacs let you embed a magic comment in the text file
which says how many spaces to display a tab as.

For the shell utility, look at the expand(1) manpage. On OSX this says:

     -t tab1,tab2,...,tabn
             Set tab stops at column positions tab1, tab2, ..., tabn.
If only
             a single number is given, tab stops are set that number of
column
             positions apart instead of the default number of 8.

So in the absence of any better info, I'd go with 8.


Ok, thanks. I might go with 2 b/c it's Ruby indention tradition. OTOH, maybe unindent method should ignore tabs altogether.

------=_Part_1409_4484295.1335706632339-- ------=_Part_1408_28337959.1335706632339--