|
Boost : |
Subject: Re: [boost] [Intrusive] Cleaning up trailing white space
From: Dave Abrahams (dave_at_[hidden])
Date: 2012-05-28 04:58:47
on Mon May 21 2012, Christopher Schmidt <christopher-AT-ch.ristopher.com> wrote:
> Dave Abrahams <dave_at_[hidden]> writes:
>
>> They never bothered me a bit until emacs started higlighting them in
>> red. Now I waste time trying to get rid of them instead of just
> ^^^^^^^^^^
>> turning off the highlight :-)
>
> (add-hook 'write-file-functions
> (lambda ()
> (whitespace-cleanup)
> nil))
>
> One can easily write a script that cleans the whole source tree.
Yup. But that's not so great either when you start working in someone
else's file and it starts adding spurious changes. And yes, I've tried
packages that try to be smarter about that. Didn't work for me, so far.
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk