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

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [PATCH] Trim trailing whitespace in vim and emacs
Дата
Msg-id ae578248-80ec-923d-5836-8471f1b8b8af@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: [PATCH] Trim trailing whitespace in vim and emacs  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 6/5/18 13:37, Tom Lane wrote:
> 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.

I have a git alias:

check-whitespace = !git diff-tree --check $(git hash-object -t tree
/dev/null) HEAD ${1:-$GIT_PREFIX}

Also, in Emacs I use

(global-whitespace-mode 1)
(setq whitespace-style
      '(face
        trailing empty indentation space-after-tab space-before-tab))

With source code other than PostgreSQL, this will occasionally result in
angry fruit salad.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [PATCH] Trim trailing whitespace in vim and emacs
Следующее
От: Ashwin Agrawal
Дата:
Сообщение: Re: Recovery performance of DROP DATABASE with many tablespaces