lkml.org 
[lkml]   [2004]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: RFC: Trailing blanks in source files
From
Date
> | > I frequently sneakily remove all newly-added trailing whitespace from the
> | > patches people send me. In 15 years it'll all be gone.
> |
> | This would maybe warrant a bk option to remove trailing
> | whitespace from modified lines. Preferably with an
> | notification that it is happening so if for some reason you
> | do want trailing whitespace you could abort or override.
> |
> | A patch filter that removed trailing whitespace from + lines
> | could also be used.
>
> AFAIK Andrew already uses a script to check for trailing spaces,
> and I do also. Yes, it could be modified to be a conversion filter,
> but it doesn't happen frequently, and when it does, I want to let
> the poster know about it, so I like to have the evidence handy. :)

Recent versions of emacs, for those that use it, have whitespace.el (for
cleaning up as you go along). It can cleanup different kinds of
whitespace based on settings. Check C-h f whitespace-describe for more
details. Got used to that heavily at one point, these days I am kind of
neutral, sometimes I do it, sometimes I don't bother.

-Pragnesh

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:00    [W:0.043 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site