pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Tom Lane <tgl@sss.pgh.pa.us>
To: Piotr Stefaniak <postgres@piotr-stefaniak.me>
Cc: Thomas Munro <thomas.munro@gmail.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Cc: Michael Paquier <michael@paquier.xyz>
Subject: Re: Emacs vs pg_indent's weird indentation for function declarations
Date: Sun, 19 May 2019 13:27:21 -0400
Message-ID: <32165.1558286841@sss.pgh.pa.us> (raw )
In-Reply-To: <DB8PR03MB59315C886E551B2D4483099FF2050@DB8PR03MB5931.eurprd03.prod.outlook.com >
References: <CAEepm=0P3FeTXRcU5B2W3jv3PgRVZ-kGUXLGfd42FFhUROO3ug@mail.gmail.com >
<7659.1548653310@sss.pgh.pa.us >
<20190128070842.GF15401@paquier.xyz >
<CAEepm=0UtAPN2RChs7=pOqHm2uvbU6Px7vfyvt8_-eiP7=ozUg@mail.gmail.com >
<CA+hUKGKCvoUsU_HpW+hg8WNDUFjQEgQvVi9AwYdsqgJfV8TzxQ@mail.gmail.com >
<14259.1557895390@sss.pgh.pa.us >
<9170.1557955021@sss.pgh.pa.us >
<CA+hUKGKb9n8xgWW3uEiA3Txvb9Er-FRX-wAAiiWdAjD7-nN44Q@mail.gmail.com >
<17265.1557955842@sss.pgh.pa.us >
<16886.1558104483@sss.pgh.pa.us >
<DB8PR03MB59315C886E551B2D4483099FF2050@DB8PR03MB5931.eurprd03.prod.outlook.com >
Piotr Stefaniak <postgres@piotr-stefaniak.me> writes:
> On 17/05/2019 16.48, Tom Lane wrote:
>> It doesn't really seem practical to me to make the lookahead function
>> smart enough to tell the difference between attributes and K&R-style
>> parameter declarations. What I'm thinking of doing to have an
>> upstreamable patch is to invent a new switch, perhaps '-kr'/'-nkr',
>> to indicate whether the user is more worried about K&R function
>> declarations than she is about function attributes.
> I think it's safe to assume that upstream can drop support for K&R-style
> parameters altogether.
Cool. I already created the switch, but maybe we could have it
default to -nkr?
regards, tom lane
view thread (15+ messages) latest in thread
Message-ID: <32165.1558286841@sss.pgh.pa.us>
Permalink: ../32165.1558286841@sss.pgh.pa.us/
Also on: postgresql.org/message-id/32165.1558286841@sss.pgh.pa.us
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, postgres@piotr-stefaniak.me, thomas.munro@gmail.com, michael@paquier.xyz
Subject: Re: Emacs vs pg_indent's weird indentation for function declarations
In-Reply-To: <32165.1558286841@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox