[Bash-completion-devel] [patch review] Add/compact *Emacs, vi and friends indentation etc settings.

Santiago M. Mola cooldwind at gmail.com
Sat Jan 17 11:18:20 UTC 2009


El sáb, 17-01-2009 a las 02:08 +0200, Ville Skyttä escribió:
> On Saturday 17 January 2009, Santiago M. Mola wrote:
> > revno: 1249
> > committer: Ville Skyttä <ville.skytta at iki.fi>
> > branch nick: current
> > timestamp: Wed 2009-01-14 22:17:14 +0200
> > message:
> >   Add/compact *Emacs, vi and friends indentation etc settings.
> >
> > +# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
> > +# ex: ts=8 sw=8 et filetype=sh
> >
> > 4 spaces for each tab seems more extended in bash scripts than 8 spaces
> 
> Not at all to me (assuming I understood correctly what you meant by extended).  
> Having the default indent step equal to 4 spaces (or half a tab) and 
> replacing all occurrences of 8 consecutive spaces with a tab is very common 
> though, perhaps you meant that?
> 
> Defining tab width (which is not the same thing as indent step) as something 
> else than 8 causes very different results in editors/viewers that support the 
> definition and ones that don't; I don't think that's a good idea.  Tab == 8 
> spaces is a pretty much ubiquitous default everywhere.

The thing is that tabstop=8 makes tabs appear like 8 characters long,
overriding my default of 4. I find this quite inconvenient so I wonder
if there's a betteter settings set.

Anyway, thanks for adding modeline. Despite this problem, I think it's
nice.

Regards,
-- 
Santiago Moisés Mola
Jabber: cooldwind at gmail.com | GPG: AAD203B5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
 digitalmente
Url : http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20090117/5824707f/attachment.pgp 


More information about the Bash-completion-devel mailing list