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

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [PATCH] Trim trailing whitespace in vim and emacs
Дата
Msg-id 20180605172854.wjo7vn54m4dmhu4x@alvherre.pgsql
обсуждение исходный текст
Ответ на [PATCH] Trim trailing whitespace in vim and emacs  (David Fetter <david@fetter.org>)
Ответы Re: [PATCH] Trim trailing whitespace in vim and emacs  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [PATCH] Trim trailing whitespace in vim and emacs  (David Fetter <david@fetter.org>)
Re: [PATCH] Trim trailing whitespace in vim and emacs  (Teodor Sigaev <teodor@sigaev.ru>)
Список pgsql-hackers
On 2018-Jun-05, David Fetter wrote:

Hi David

> Here's my attempt to $subject. I've tested with vim, but I'm much less
> certain I got the EMACS code right.
> 
> 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).

I once tried to have vim highlight trailing whitespace, spaces before
tabs, and overlength lines (>80 chars), and while I could do each thing
in isolation, I wasn't able to get it to highlight the three of them at
the same time.  If you have a recipe for that, I welcome it.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Spilling hashed SetOps and aggregates to disk
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: Re: Spilling hashed SetOps and aggregates to disk