Re: [PATCH] Trim trailing whitespace in vim and emacs

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] Trim trailing whitespace in vim and emacs
Дата
Msg-id 4701.1528220232@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCH] Trim trailing whitespace in vim and emacs  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: [PATCH] Trim trailing whitespace in vim and emacs  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список 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 по дате отправления:

Предыдущее
От: "Jonathan S. Katz"
Дата:
Сообщение: Re: commitfest 2018-07
Следующее
От: David Fetter
Дата:
Сообщение: Re: Spilling hashed SetOps and aggregates to disk