[bind10-dev] tabs are now prohibited?
JINMEI Tatuya / 神明達哉
jinmei at isc.org
Mon Aug 17 18:35:39 UTC 2009
At Mon, 17 Aug 2009 16:05:45 +0200,
Shane Kerr <shane at isc.org> wrote:
>
> My concern is with this:
>
> * Alice makes a nice file, tabs set at 8 characters, where spaces
> get "compressed" to tabs.
> * Bob edits the file, with his tabs set to 6 characters, so he
> adds 2 extra spaces for the few lines he touches.
> * Alice looks at the file again, and it's a mess.
>
> Rob's answer to this is "use Emacs and have the editor re-indent
> everything when you open a file". Not so nice when looking via a web
> browser, or for those of us stuck in 1980 and still using vi. :)
>
> However, we can also avoid this problem by forbidding use of tabs, which
> I thought we agreed to.
As I said, I'm fine with this policy.
> > > (I do think it would be better if it were possible to override the
> > > restriction when you have a good reason to, though. Does the precommit
> > > script have any such capability?)
> >
> > Without modifying the script? From a quick look at the source code I
> > suspect it's not possible.
>
> Right now the script is pretty dumb, and just blindly looks for tab
> characters. We can add a keyword like "BIND10_ALLOW_HARD_TABS" that
> people can put in the comments if we want to. Or we can make the script
> allow existing files with tabs to be updated.
>
> Thoughts?
I have no strong opinion (or good idea) about this point. But if this
is only about indentation, one quick customization is to have the
script focus on tabs at the beginning of a line: ^\t.
---
JINMEI, Tatuya
More information about the bind10-dev
mailing list