public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] Re: trailing white space...
@ 2003-05-31  6:18 David Mosberger
  2003-05-31  6:41 ` Sam Ravnborg
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: David Mosberger @ 2003-05-31  6:18 UTC (permalink / raw)
  To: linux-ia64

>>>>> On Fri, 30 May 2003 23:46:27 -0500, Chris Wedgwood <cw@f00f.org> said:

  Chris> On Fri, May 30, 2003 at 05:34:31PM -0700, David Mosberger
  Chris> wrote:
  >> Nah, that's OK.  With patches it's much easier to make trivial
  >> changes, such as deleting the trailing whitespace that everybody
  >> seems to love so much... ;-)

  Chris> One of my pet gripes :)

  Chris> Emacs users can (and should!)  consider:

  Chris> 	(setq show-trailing-whitespace t)

Yeah, that does make it pretty hard to ignore, doesn't it? ;-)

	--david


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Linux-ia64] Re: trailing white space...
  2003-05-31  6:18 [Linux-ia64] Re: trailing white space David Mosberger
@ 2003-05-31  6:41 ` Sam Ravnborg
  2003-06-02 18:23 ` Wichmann, Mats D
  2003-06-02 23:16 ` Chris Wedgwood
  2 siblings, 0 replies; 4+ messages in thread
From: Sam Ravnborg @ 2003-05-31  6:41 UTC (permalink / raw)
  To: linux-ia64

On Fri, May 30, 2003 at 11:46:27PM -0500, Chris Wedgwood wrote:
> Emacs users can (and should!)  consider:
> 
> 	(setq show-trailing-whitespace t)

Anything similar for vi and gvim?

	Sam


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [Linux-ia64] Re: trailing white space...
  2003-05-31  6:18 [Linux-ia64] Re: trailing white space David Mosberger
  2003-05-31  6:41 ` Sam Ravnborg
@ 2003-06-02 18:23 ` Wichmann, Mats D
  2003-06-02 23:16 ` Chris Wedgwood
  2 siblings, 0 replies; 4+ messages in thread
From: Wichmann, Mats D @ 2003-06-02 18:23 UTC (permalink / raw)
  To: linux-ia64

> > Emacs users can (and should!)  consider:
> > 
> > 	(setq show-trailing-whitespace t)
> 
> Anything similar for vi and gvim?

:set list

but in either case this just shows you
the stuff, it doesn't remove it.
If it's a persistent problem, a simple
filter is easier to use.  I find Python's
rstrip string method useful for this,
i.e. if you have a line of text in 'line',

    line = line.rstrip()

saves a new copy of the line with the
trailing whitespace removed.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Linux-ia64] Re: trailing white space...
  2003-05-31  6:18 [Linux-ia64] Re: trailing white space David Mosberger
  2003-05-31  6:41 ` Sam Ravnborg
  2003-06-02 18:23 ` Wichmann, Mats D
@ 2003-06-02 23:16 ` Chris Wedgwood
  2 siblings, 0 replies; 4+ messages in thread
From: Chris Wedgwood @ 2003-06-02 23:16 UTC (permalink / raw)
  To: linux-ia64

On Mon, Jun 02, 2003 at 11:23:51AM -0700, Wichmann, Mats D wrote:

> but in either case this just shows you
> the stuff, it doesn't remove it.

I think that's how it should be... removing it on existing files w/o
care is bad.

> If it's a persistent problem, a simple
> filter is easier to use.

For new files sure, for existing files I would rather people ensure
hunsk they edit and linees they edit contain no/few whitespace
changes.


> I find Python's rstrip string method useful for this, i.e. if you
> have a line of text in 'line',
> 
>     line = line.rstrip()
> 
> saves a new copy of the line with the
> trailing whitespace removed.

What's wrong with sed?


  --cw


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-06-02 23:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-31  6:18 [Linux-ia64] Re: trailing white space David Mosberger
2003-05-31  6:41 ` Sam Ravnborg
2003-06-02 18:23 ` Wichmann, Mats D
2003-06-02 23:16 ` Chris Wedgwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox