Re: [PATCH] Trim trailing whitespace in vim and emacs - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCH] Trim trailing whitespace in vim and emacs
Date
Msg-id 4701.1528220232@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCH] Trim trailing whitespace in vim and emacs  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: [PATCH] Trim trailing whitespace in vim and emacs
List pgsql-hackers
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> On 2018-Jun-05, David Fetter wrote:
>> Is there any interest in such a feature?

> I'd rather have the editor warn me (highlight) such things rather than
> fix them silently (I wonder if it'd cause a mess with regression .out
> files for example, which I do edit on occasion).

Yeah, agreed.  FWIW, I'm not that fussed about this for .h/.c files,
since pgindent will fix it sooner or later (or even right away, if the
committer is anal enough to pgindent before committing, as some of us
are).  It's a bit more of a problem for other file types.

I note that Peter E. seems to have a recipe for finding such issues,
which I suspect is grounded in some obscure git feature or other.
That might be easier to work with, since you'd only need one fix
not one per editor.

            regards, tom lane


pgsql-hackers by date:

Previous
From: "Jonathan S. Katz"
Date:
Subject: Re: commitfest 2018-07
Next
From: David Fetter
Date:
Subject: Re: Spilling hashed SetOps and aggregates to disk