Re: [HACKERS] Indent - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [HACKERS] Indent
Date
Msg-id Pine.GSO.4.02A.9911111631090.22368-100000@Lodjur.DoCS.UU.SE
Whole thread Raw
In response to Re: [HACKERS] Indent  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
On Wed, 10 Nov 1999, Bruce Momjian wrote:

> > ObFlameBait: Personally I think we should switch over to standard
> > 8-column tabs, but Bruce is apparently still using some medieval editor
> > in which physical tab widths dictate logical indent levels :-(
> 
> Vadim is also in agreement on this.  Not many editors can handle
> cases where tab size is different from indent size.  Emacs obviously
> can, and Tom has enjoyed pointing out.  :-)
> 
> I am willing to re-open the discussion if we people would prefer
> something else.

Trying to redefine a tab to be 4 spaces is asking for trouble. How about
making pgindent replace 8 spaces with a tab and 4 spaces with, well, 4
spaces. This is how emacs handles bsd indent style if you don't change the
tab sizes. And all other editors should be fine with this.

Personally, I'm always in favour of using no tabs at all, because of this
very problem, and just because they annoy me. But I tend to be alone with
that position.

-- 
Peter Eisentraut                  Sernanders vaeg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden



pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: [INTERFACES] Re: [HACKERS] CORBA STATUS
Next
From: Oleg Broytmann
Date:
Subject: PostgreSQL and Zope