[lkml]   [2007]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRE: [PATCH] CodingStyle: Add information about trailing whitespace.
> -----Original Message-----
> From:
> [] On Behalf Of Josh Triplett
> Sent: Thursday, June 28, 2007 2:59 PM
> To: Jan Engelhardt
> Cc: dave young; Chris Shoemaker; Josh Triplett;;
> Subject: Re: [PATCH] CodingStyle: Add information about trailing
> Jan Engelhardt wrote:
> > On Jun 28 2007 06:29, dave young wrote:
> >> IMHO, another cause of trailing whitespace is human error, for
> >> example long lines breaking will easy to cause the first line with
> >> traling whitespace (original space between the last two words).
> >
> > Most common errors (to me) are:
> >
> > - hit return+tab too quickly that it interchanges, hence producing
> > the unwanted \t\n
> > - hit return+return to start a new paragraph of code;
> > the intermediate line remains indented if autoindent is on.
> Interestingly, emacs gets that case right: when you hit enter it
places the
> cursor at the properly indented insertion point, but if you leave the
> without typing anything it does not leave the indentation. I thought
> remembered vim doing the same thing, but I just tested and it appears
not. It
> seems to avoid leaving subsequent lines indented, but not the first

No, vim works just fine here without leaving any indentation. Maybe the
version of vim or the options matter.

- Leo
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2007-06-28 09:09    [W:1.895 / U:0.072 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site