linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree
       [not found] <200601190052.k0J0qmKC009977@shell0.pdx.osdl.net>
@ 2006-01-19  5:21 ` David Woodhouse
  2006-01-19  6:17   ` Stephen Rothwell
  0 siblings, 1 reply; 20+ messages in thread
From: David Woodhouse @ 2006-01-19  5:21 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

On Wed, 2006-01-18 at 16:52 -0800, akpm@osdl.org wrote:
> -                       memcpy(&current->saved_sigmask, &sigsaved, sizeof(sigsaved));
> +                       memcpy(&current->saved_sigmask, &sigsaved,
> +                                       sizeof(sigsaved));

I still object to this.

You justified it on the basis that some people have editors which will
wrap the original version onto a second line and make it look ugly...
yet your 'fix' is to wrap it onto a second line and make it look ugly
for _all_ of us, not just for those using crap editors. I really don't
see the overall benefit.

-- 
dwmw2


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

* Re: - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree
  2006-01-19  5:21 ` - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree David Woodhouse
@ 2006-01-19  6:17   ` Stephen Rothwell
  2006-01-19  6:24     ` David Woodhouse
                       ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: Stephen Rothwell @ 2006-01-19  6:17 UTC (permalink / raw)
  To: David Woodhouse; +Cc: akpm, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]

Hi David,

On Thu, 19 Jan 2006 16:21:59 +1100 David Woodhouse <dwmw2@infradead.org> wrote:
>
> On Wed, 2006-01-18 at 16:52 -0800, akpm@osdl.org wrote:
> > -                       memcpy(&current->saved_sigmask, &sigsaved, sizeof(sigsaved));
> > +                       memcpy(&current->saved_sigmask, &sigsaved,
> > +                                       sizeof(sigsaved));
> 
> I still object to this.
> 
> You justified it on the basis that some people have editors which will
> wrap the original version onto a second line and make it look ugly...
> yet your 'fix' is to wrap it onto a second line and make it look ugly
> for _all_ of us, not just for those using crap editors. I really don't
> see the overall benefit.

Documentation/CodingStyle says:

The limit on the length of lines is 80 columns and this is a hard limit.

Statements longer than 80 columns will be broken into sensible chunks.
Descendants are always substantially shorter than the parent and are placed
substantially to the right. The same applies to function headers with a long
argument list. Long strings are as well broken into shorter strings.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree
  2006-01-19  6:17   ` Stephen Rothwell
@ 2006-01-19  6:24     ` David Woodhouse
  2006-01-19  6:30     ` Andrew Morton
                       ` (2 subsequent siblings)
  3 siblings, 0 replies; 20+ messages in thread
From: David Woodhouse @ 2006-01-19  6:24 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: akpm, linux-kernel

On Thu, 2006-01-19 at 17:17 +1100, Stephen Rothwell wrote:
> The limit on the length of lines is 80 columns and this is a hard limit.
> 
> Statements longer than 80 columns will be broken into sensible chunks.
> Descendants are always substantially shorter than the parent and are placed
> substantially to the right. The same applies to function headers with a long
> argument list. Long strings are as well broken into shorter strings.

We can submit patches for the cases where the guidelines listed in
Documentation/CodingStyle diverge from common sense. 

In _some_ cases, the text which one might put after the 80th column is
actually important to the flow of the program and really should be put
back into the 'normal' text area. That's fair enough -- I'm not arguing
that we should leave 80-column text areas behind altogether.

But in this case it's just the length argument to a memcpy, and there's
no real information there. Similarly, people have recently been observed
to start wrapping the strings in debugging printks onto a second line
gratuitously. In _those_ cases, it really is counter-productive -- it's
_fine_ if that text is off the right-hand side of the screen.

If your editor wraps it onto the next line, then that sucks -- but at
least it only sucks for _you_, and you wouldn't really benefit by the
proposed 'fix' anyway, because the proposed 'fix' is just to wrap it so
that it sucks for _all_ of us.

-- 
dwmw2


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

* Re: - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree
  2006-01-19  6:17   ` Stephen Rothwell
  2006-01-19  6:24     ` David Woodhouse
@ 2006-01-19  6:30     ` Andrew Morton
  2006-01-19  6:40       ` David Woodhouse
  2006-01-19  6:36     ` David S. Miller
  2006-01-19  9:58     ` Alan Cox
  3 siblings, 1 reply; 20+ messages in thread
From: Andrew Morton @ 2006-01-19  6:30 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: dwmw2, linux-kernel

Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Documentation/CodingStyle says:
> 
>  The limit on the length of lines is 80 columns and this is a hard limit.
> 
>  Statements longer than 80 columns will be broken into sensible chunks.
>  Descendants are always substantially shorter than the parent and are placed
>  substantially to the right. The same applies to function headers with a long
>  argument list. Long strings are as well broken into shorter strings.

That's pretty stern.

I'd be happy with a 96-col standard, or 100 or whatever - it's more
convenient and I use twin 20" guns.  But other people have different
hardware constraints and different work practices, so they want 80 cols. 
If we're going to get down and change the standard then OK, let's have that
bunfight.  But while there's a standard we should stick to it so we don't
screw over the people who like to use standard-sized xterms.

And yes, some editors can do sideways-scrolling to make wider-than-80
acceptable in an 80-col window.  But other people's setups don't do that,
and the cost to those people of wrappy code is higher than the cost of
looking at standardly-laid-out code to fancy-editor users.

So the lowest common denominator wins, because they hurt more than anyone
else if we go outside 80-cols.  I use 80-col xterms precisely for this
reason: so that the code which goes in will look OK to those users.

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

* Re: - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree
  2006-01-19  6:17   ` Stephen Rothwell
  2006-01-19  6:24     ` David Woodhouse
  2006-01-19  6:30     ` Andrew Morton
@ 2006-01-19  6:36     ` David S. Miller
  2006-01-19  6:47       ` Trond Myklebust
                         ` (2 more replies)
  2006-01-19  9:58     ` Alan Cox
  3 siblings, 3 replies; 20+ messages in thread
From: David S. Miller @ 2006-01-19  6:36 UTC (permalink / raw)
  To: sfr; +Cc: dwmw2, akpm, linux-kernel

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Thu, 19 Jan 2006 17:17:08 +1100

> Documentation/CodingStyle says:
> 
> The limit on the length of lines is 80 columns and this is a hard limit.
> 
> Statements longer than 80 columns will be broken into sensible chunks.
> Descendants are always substantially shorter than the parent and are placed
> substantially to the right. The same applies to function headers with a long
> argument list. Long strings are as well broken into shorter strings.

I wish there were an exception for function prototypes and definitions.
Why?  So grep actually works.

Hmmm, what args does function X take?  Let's try this:

bash$ git grep X

Oops, the args went past 80 columns and was split up, so I only
get the first few in the grep output.

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

* Re: - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree
  2006-01-19  6:30     ` Andrew Morton
@ 2006-01-19  6:40       ` David Woodhouse
  0 siblings, 0 replies; 20+ messages in thread
From: David Woodhouse @ 2006-01-19  6:40 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Stephen Rothwell, linux-kernel

On Wed, 2006-01-18 at 22:30 -0800, Andrew Morton wrote:
> So the lowest common denominator wins, because they hurt more than
> anyone else if we go outside 80-cols.  I use 80-col xterms precisely
> for this reason: so that the code which goes in will look OK to those
> users.

That would make some sense if it weren't for the fact that the snippet
of patch I just showed doesn't actually improve the situation for the
lowest common denominator -- it only makes it worse for the rest of us.

Put real meaningful stuff within 80 columns by all means -- but please
allow lines to be longer than that if they're just 'fluff'. 

-- 
dwmw2


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

* Re: - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree
  2006-01-19  6:36     ` David S. Miller
@ 2006-01-19  6:47       ` Trond Myklebust
  2006-01-19  7:02         ` Andrew Morton
  2006-01-19 15:51       ` James Morris
  2006-01-20  2:17       ` Stephen Rothwell
  2 siblings, 1 reply; 20+ messages in thread
From: Trond Myklebust @ 2006-01-19  6:47 UTC (permalink / raw)
  To: David S. Miller; +Cc: sfr, dwmw2, akpm, linux-kernel

On Wed, 2006-01-18 at 22:36 -0800, David S. Miller wrote:
> I wish there were an exception for function prototypes and definitions.
> Why?  So grep actually works.

Seconded! Even people with antediluvian editors will find it useful to
be able to grep for function prototypes and/or definitions in order to
figure out argument definitions, argument orders, etc.

Cheers,
  Trond


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

* Re: - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree
  2006-01-19  6:47       ` Trond Myklebust
@ 2006-01-19  7:02         ` Andrew Morton
  2006-01-19  7:18           ` David Woodhouse
  2006-01-19  8:09           ` David S. Miller
  0 siblings, 2 replies; 20+ messages in thread
From: Andrew Morton @ 2006-01-19  7:02 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: davem, sfr, dwmw2, linux-kernel

Trond Myklebust <trond.myklebust@fys.uio.no> wrote:
>
> On Wed, 2006-01-18 at 22:36 -0800, David S. Miller wrote:
>  > I wish there were an exception for function prototypes and definitions.
>  > Why?  So grep actually works.
> 
>  Seconded!

hm.  Why not use $EDITOR's ctags/etags/etc?

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

* Re: - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree
  2006-01-19  7:02         ` Andrew Morton
@ 2006-01-19  7:18           ` David Woodhouse
  2006-01-19  8:09           ` David S. Miller
  1 sibling, 0 replies; 20+ messages in thread
From: David Woodhouse @ 2006-01-19  7:18 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Trond Myklebust, davem, sfr, linux-kernel

On Wed, 2006-01-18 at 23:02 -0800, Andrew Morton wrote:
> hm.  Why not use $EDITOR's ctags/etags/etc?

Some editors don't have them -- and certainly not for the git trees
pulled from upstream which I keep pristine.

-- 
dwmw2


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

* Re: - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree
  2006-01-19  7:02         ` Andrew Morton
  2006-01-19  7:18           ` David Woodhouse
@ 2006-01-19  8:09           ` David S. Miller
  1 sibling, 0 replies; 20+ messages in thread
From: David S. Miller @ 2006-01-19  8:09 UTC (permalink / raw)
  To: akpm; +Cc: trond.myklebust, sfr, dwmw2, linux-kernel

From: Andrew Morton <akpm@osdl.org>
Date: Wed, 18 Jan 2006 23:02:27 -0800

> Trond Myklebust <trond.myklebust@fys.uio.no> wrote:
> >
> > On Wed, 2006-01-18 at 22:36 -0800, David S. Miller wrote:
> >  > I wish there were an exception for function prototypes and definitions.
> >  > Why?  So grep actually works.
> > 
> >  Seconded!
> 
> hm.  Why not use $EDITOR's ctags/etags/etc?

Why rebuild that every time the tree changes when we have
grep and "git grep" which sees updates automatically? :-)

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

* Re: - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree
  2006-01-19  6:17   ` Stephen Rothwell
                       ` (2 preceding siblings ...)
  2006-01-19  6:36     ` David S. Miller
@ 2006-01-19  9:58     ` Alan Cox
  2006-01-19 15:59       ` Jens Axboe
  3 siblings, 1 reply; 20+ messages in thread
From: Alan Cox @ 2006-01-19  9:58 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: David Woodhouse, akpm, linux-kernel

On Iau, 2006-01-19 at 17:17 +1100, Stephen Rothwell wrote:
> Documentation/CodingStyle says:
> 
> The limit on the length of lines is 80 columns and this is a hard limit.

Its so hard nobody follows it because in many places the results as Dave
correctly points out are just stupid.

Linux 2.6.16-rc1
	Number of files matching *.[c|h]	: 15732
	Number with lines exceeding 80 columns	: 6931
	As a percentage				: 44%

Fix the CodingStyle document instead

Alan




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

* Re: - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree
  2006-01-19  6:36     ` David S. Miller
  2006-01-19  6:47       ` Trond Myklebust
@ 2006-01-19 15:51       ` James Morris
  2006-01-20  2:17       ` Stephen Rothwell
  2 siblings, 0 replies; 20+ messages in thread
From: James Morris @ 2006-01-19 15:51 UTC (permalink / raw)
  To: David S. Miller; +Cc: sfr, dwmw2, akpm, linux-kernel

On Wed, 18 Jan 2006, David S. Miller wrote:

> I wish there were an exception for function prototypes and definitions.
> Why?  So grep actually works.
> 
> Hmmm, what args does function X take?  Let's try this:
> 
> bash$ git grep X
> 
> Oops, the args went past 80 columns and was split up, so I only
> get the first few in the grep output.

Linus already made this exception, some time ago on lkml, IIRC). I think 
it was 120 cols for functions.


- James
-- 
James Morris
<jmorris@namei.org>

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

* Re: - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree
  2006-01-19  9:58     ` Alan Cox
@ 2006-01-19 15:59       ` Jens Axboe
  2006-01-20  8:33         ` David Woodhouse
  0 siblings, 1 reply; 20+ messages in thread
From: Jens Axboe @ 2006-01-19 15:59 UTC (permalink / raw)
  To: Alan Cox; +Cc: Stephen Rothwell, David Woodhouse, akpm, linux-kernel

On Thu, Jan 19 2006, Alan Cox wrote:
> On Iau, 2006-01-19 at 17:17 +1100, Stephen Rothwell wrote:
> > Documentation/CodingStyle says:
> > 
> > The limit on the length of lines is 80 columns and this is a hard limit.
> 
> Its so hard nobody follows it because in many places the results as Dave
> correctly points out are just stupid.
> 
> Linux 2.6.16-rc1
> 	Number of files matching *.[c|h]	: 15732
> 	Number with lines exceeding 80 columns	: 6931
> 	As a percentage				: 44%
> 
> Fix the CodingStyle document instead

89% of all statistics are bogus, right? In those files, how many lines
are correctly wrapped even if some are > 80 chars?

I think the CodingStyle suggestion of 80 chars is just fine. I try to
stay within that, and I mostly succeed. The occasional over-the-line is
far better than advocation >> 80 chars per line imho.

-- 
Jens Axboe


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

* Re: - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree
  2006-01-19  6:36     ` David S. Miller
  2006-01-19  6:47       ` Trond Myklebust
  2006-01-19 15:51       ` James Morris
@ 2006-01-20  2:17       ` Stephen Rothwell
  2 siblings, 0 replies; 20+ messages in thread
From: Stephen Rothwell @ 2006-01-20  2:17 UTC (permalink / raw)
  To: David S. Miller; +Cc: dwmw2, akpm, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 453 bytes --]

On Wed, 18 Jan 2006 22:36:29 -0800 (PST) "David S. Miller" <davem@davemloft.net> wrote:
>
> Hmmm, what args does function X take?  Let's try this:
> 
> bash$ git grep X
> 
> Oops, the args went past 80 columns and was split up, so I only
> get the first few in the grep output.

git grep -A2 X

:-)  (now I am just being silly :-))

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree
  2006-01-19 15:59       ` Jens Axboe
@ 2006-01-20  8:33         ` David Woodhouse
  2006-01-20  8:44           ` Andrew Morton
  0 siblings, 1 reply; 20+ messages in thread
From: David Woodhouse @ 2006-01-20  8:33 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Alan Cox, Stephen Rothwell, akpm, linux-kernel

On Thu, 2006-01-19 at 16:59 +0100, Jens Axboe wrote:
> I think the CodingStyle suggestion of 80 chars is just fine. I try to
> stay within that, and I mostly succeed. The occasional over-the-line is
> far better than advocation >> 80 chars per line imho.

I agree. It's that "occasional over-the-line" which Andrew is mucking
about with in the patch which started this thread; the case where it
makes _sense_ to let it go over 80 characters rather than wrapping it.

-- 
dwmw2


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

* Re: - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree
  2006-01-20  8:33         ` David Woodhouse
@ 2006-01-20  8:44           ` Andrew Morton
  2006-01-20  8:59             ` David Woodhouse
  0 siblings, 1 reply; 20+ messages in thread
From: Andrew Morton @ 2006-01-20  8:44 UTC (permalink / raw)
  To: David Woodhouse; +Cc: axboe, alan, sfr, linux-kernel

David Woodhouse <dwmw2@infradead.org> wrote:
>
> On Thu, 2006-01-19 at 16:59 +0100, Jens Axboe wrote:
> > I think the CodingStyle suggestion of 80 chars is just fine. I try to
> > stay within that, and I mostly succeed. The occasional over-the-line is
> > far better than advocation >> 80 chars per line imho.
> 
> I agree. It's that "occasional over-the-line" which Andrew is mucking
> about with in the patch which started this thread; the case where it
> makes _sense_ to let it go over 80 characters rather than wrapping it.
> 

Oh crap.  The damn thing wraps into column _1_ and gets tangled up with
ifdef statements, function definitions and other things which _should_ go
in column one.

It .looks.  .like.  .crap.  to many other people, and saying random stupid
wrong things doesn't alter that very simple fact.


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

* Re: - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree
  2006-01-20  8:44           ` Andrew Morton
@ 2006-01-20  8:59             ` David Woodhouse
  2006-01-20 10:01               ` Eric Dumazet
  2006-01-20 23:44               ` Adrian Bunk
  0 siblings, 2 replies; 20+ messages in thread
From: David Woodhouse @ 2006-01-20  8:59 UTC (permalink / raw)
  To: Andrew Morton; +Cc: axboe, alan, sfr, linux-kernel

On Fri, 2006-01-20 at 00:44 -0800, Andrew Morton wrote:
> Oh crap.  The damn thing wraps into column _1_ and gets tangled up with
> ifdef statements, function definitions and other things which _should_ go
> in column one.

It does that only for people with editors which wrap stuff like that
into column 1. Those people (which includes myself on some occasions)
are _used_ to seeing stuff like that in column 1, so it's natural. And
it's text which is of little importance; not something which has much
relevance to the code flow.

> It .looks.  .like.  .crap.  to many other people, and saying random stupid
> wrong things doesn't alter that very simple fact.

No, it looks like crap for _some_ people. And making it look like crap
for _everyone_, which is what your patch does, doesn't alter that fact
either.

It's a simple memcpy(dest, src, len), and the length is almost entirely
superfluous -- we could almost get away with '*dest = *src' here. It
lives on a single line and is messy any other way, and you want to muck
about with it just because there are some poor sods out there for whom
it would look _slightly_ better if you make it look like crap for the
rest of us.

I'm not advocating a blanket removal of the 80-character limit;
important things should always be within 80 columns. But this is fluff;
leave it where it is, please.

-- 
dwmw2


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

* Re: - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree
  2006-01-20  8:59             ` David Woodhouse
@ 2006-01-20 10:01               ` Eric Dumazet
  2006-01-23  5:25                 ` David Woodhouse
  2006-01-20 23:44               ` Adrian Bunk
  1 sibling, 1 reply; 20+ messages in thread
From: Eric Dumazet @ 2006-01-20 10:01 UTC (permalink / raw)
  To: David Woodhouse; +Cc: Andrew Morton, axboe, alan, sfr, linux-kernel

David Woodhouse a écrit :
> On Fri, 2006-01-20 at 00:44 -0800, Andrew Morton wrote:
>> Oh crap.  The damn thing wraps into column _1_ and gets tangled up with
>> ifdef statements, function definitions and other things which _should_ go
>> in column one.
> 
> It does that only for people with editors which wrap stuff like that
> into column 1. Those people (which includes myself on some occasions)
> are _used_ to seeing stuff like that in column 1, so it's natural. And
> it's text which is of little importance; not something which has much
> relevance to the code flow.
> 
>> It .looks.  .like.  .crap.  to many other people, and saying random stupid
>> wrong things doesn't alter that very simple fact.
> 
> No, it looks like crap for _some_ people. And making it look like crap
> for _everyone_, which is what your patch does, doesn't alter that fact
> either.

David,

Some readers of linux kernel sources are blind.
They use a kind of terminal that 'displays' a single line of 80 'characters' 
(or even 40) called a 'Braille Display'

This kind of terminal is very expensive, and I think the 80 column one is the 
most you can get (price : about 7000$).

I am ok to be a litle bit upset by this 80 limitation that looks odd on my 
1000$ 24" display, but reminds me the fact that some human people are different.

So please don't count me as part of your _everyone_.

Thank you
Eric

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

* Re: - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree
  2006-01-20  8:59             ` David Woodhouse
  2006-01-20 10:01               ` Eric Dumazet
@ 2006-01-20 23:44               ` Adrian Bunk
  1 sibling, 0 replies; 20+ messages in thread
From: Adrian Bunk @ 2006-01-20 23:44 UTC (permalink / raw)
  To: David Woodhouse; +Cc: Andrew Morton, axboe, alan, sfr, linux-kernel

On Fri, Jan 20, 2006 at 09:59:54PM +1300, David Woodhouse wrote:
> On Fri, 2006-01-20 at 00:44 -0800, Andrew Morton wrote:
> > Oh crap.  The damn thing wraps into column _1_ and gets tangled up with
> > ifdef statements, function definitions and other things which _should_ go
> > in column one.
> 
> It does that only for people with editors which wrap stuff like that
> into column 1. Those people (which includes myself on some occasions)
> are _used_ to seeing stuff like that in column 1, so it's natural. And
> it's text which is of little importance; not something which has much
> relevance to the code flow.
>...

Patches with lines > 80 are not easily readable in 80 column xterms no 
matter whether the lines are wrapped or not.

> dwmw2

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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

* Re: - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree
  2006-01-20 10:01               ` Eric Dumazet
@ 2006-01-23  5:25                 ` David Woodhouse
  0 siblings, 0 replies; 20+ messages in thread
From: David Woodhouse @ 2006-01-23  5:25 UTC (permalink / raw)
  To: Eric Dumazet; +Cc: Andrew Morton, axboe, alan, sfr, linux-kernel

On Fri, 2006-01-20 at 11:01 +0100, Eric Dumazet wrote:
> Some readers of linux kernel sources are blind.
> They use a kind of terminal that 'displays' a single line of 80 'characters' 
> (or even 40) called a 'Braille Display'
> 
> This kind of terminal is very expensive, and I think the 80 column one is the 
> most you can get (price : about 7000$).

Yes, I've seen them. What's your point? A user with a braille terminal
can also 'see' that it's just a memcpy of the signal set, and doesn't
really need to scroll over to see the length argument to the memcpy,
except in very exceptional circumstances. The code flow is perfectly
understandable without doing so.

> I am ok to be a litle bit upset by this 80 limitation that looks odd on my 
> 1000$ 24" display, but reminds me the fact that some human people are different.
> 
> So please don't count me as part of your _everyone_.

I count your theoretical blind person above as part of 'everyone'. By
gratuitously moving the 'fluff' onto a new line, he gets a whole line
taken up by it when he scrolls down. If it had stayed where I put it, it
wouldn't be getting in his way.

-- 
dwmw2


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

end of thread, other threads:[~2006-01-23  5:25 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200601190052.k0J0qmKC009977@shell0.pdx.osdl.net>
2006-01-19  5:21 ` - add-pselect-ppoll-system-call-implementation-tidy.patch removed from -mm tree David Woodhouse
2006-01-19  6:17   ` Stephen Rothwell
2006-01-19  6:24     ` David Woodhouse
2006-01-19  6:30     ` Andrew Morton
2006-01-19  6:40       ` David Woodhouse
2006-01-19  6:36     ` David S. Miller
2006-01-19  6:47       ` Trond Myklebust
2006-01-19  7:02         ` Andrew Morton
2006-01-19  7:18           ` David Woodhouse
2006-01-19  8:09           ` David S. Miller
2006-01-19 15:51       ` James Morris
2006-01-20  2:17       ` Stephen Rothwell
2006-01-19  9:58     ` Alan Cox
2006-01-19 15:59       ` Jens Axboe
2006-01-20  8:33         ` David Woodhouse
2006-01-20  8:44           ` Andrew Morton
2006-01-20  8:59             ` David Woodhouse
2006-01-20 10:01               ` Eric Dumazet
2006-01-23  5:25                 ` David Woodhouse
2006-01-20 23:44               ` Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).