Re: updated emacs configuration - Mailing list pgsql-hackers

From Andres Freund
Subject Re: updated emacs configuration
Date
Msg-id 20140206131920.GO28649@alap3.anarazel.de
Whole thread Raw
In response to Re: updated emacs configuration  (Greg Stark <stark@mit.edu>)
Responses Re: updated emacs configuration  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Re: updated emacs configuration  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2013-07-21 02:06:02 +0100, Greg Stark wrote:
> On Thu, Jun 27, 2013 at 10:31 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> >
> > AFAIR, no one has ever done a serious comparison to anything except GNU
> > indent, and (at least at the time) it seemed to have bugs as bad as
> > pgindent's, just different ones.  I'm certainly open to another choice
> > as long as we don't lose on portability of the tool.  But who will do
> > the legwork to test something else?
> 
> Fwiw I played with clang-format a bit the other day. But I couldn't
> get it to resemble our coding style. It was strongly of the opinion
> that spacing within lines should be completely consistent and that
> meant it eliminated all spaces that lined up initializers and such.

FWIW, there's some work going on to add more options (like pg correct
differences between function definitions and declarations). So it might
develop into something usable for pg.

What I haven't seen in any tool yet is something to resemble our
indentation style for variable declarations. Do we feel that's a
dealbreaker for any tool?

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: updated emacs configuration
Next
From: Craig Ringer
Date:
Subject: Re: Row-security on updatable s.b. views