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

From Alvaro Herrera
Subject Re: [PATCH] Trim trailing whitespace in vim and emacs
Date
Msg-id 20180605172854.wjo7vn54m4dmhu4x@alvherre.pgsql
Whole thread Raw
In response to [PATCH] Trim trailing whitespace in vim and emacs  (David Fetter <david@fetter.org>)
Responses Re: [PATCH] Trim trailing whitespace in vim and emacs
Re: [PATCH] Trim trailing whitespace in vim and emacs
Re: [PATCH] Trim trailing whitespace in vim and emacs
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Spilling hashed SetOps and aggregates to disk
Next
From: Jeff Davis
Date:
Subject: Re: Re: Spilling hashed SetOps and aggregates to disk