public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Ideas on column length in kernel "problem"?
@ 2007-08-23  3:54 Scott Thompson
  2007-08-23  4:05 ` Adrian Bunk
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Scott Thompson @ 2007-08-23  3:54 UTC (permalink / raw)
  To: linux-kernel, kernel-janitors

I haven't seen any recent solutions to this "problem"...

Many free (and not-free) mail clients wordwrap.  Hushmail wraps at 
68 (verified), Yahoo has options to wrap at a max of 99, and Gmail 
was somewhere around 85-90 as I recall.  Not sure on other free / 
inexpensive clients.  

However, several code modules have code lines with column lengths 
well over 80 (the worst I have seen was 211).  This prevents people 
with "minimal function" email clients (I'm being generous) from 
making changes in the area of these long code lines, or from even 
submitting fixes for the line length problem in modules themselves.

I don't have an easy solution short of finding volunteer(s) who can 
submit patches to resolve this or peer-pressuring module owners 
into resolving, so opening this issue up to the list for ideas 
here.  In the meantime I'll run a quick review to assess just how 
many changes this would be ...

Note -- I am well aware that us 'poor users' could just 'get a real 
email service', and if anyone knows of a free/inexpensive mail 
client that will be able to handle the wordwrap requirements for 
the current state of the linux tree please advise.

---------------------------------------
Scott Thompson / postfail@hushmail.com
---------------------------------------


^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: Ideas on column length in kernel "problem"?
@ 2007-08-24 16:31 Scott Thompson
  2007-08-24 16:51 ` Randy Dunlap
  0 siblings, 1 reply; 14+ messages in thread
From: Scott Thompson @ 2007-08-24 16:31 UTC (permalink / raw)
  To: alan, jesper.juhl; +Cc: lists-receive, linux-kernel, kernel-janitors


On Fri, 24 Aug 2007 07:07:54 -0400 Jesper Juhl 
<jesper.juhl@gmail.com> wrote:
>On 24/08/07, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
>> > I think this is also a matter of conding style. 
>Documentation/CodingStyle says:
>> >
>> > "The limit on the length of lines is 80 columns and this is a 
>hard limit."
>>
>> As has repeatedly been stated this is a bug in 
>Documentation/CodingStyle and bears no resemblence to reality.
>>

Quite the hornet's nest I've stirred up -- I'm not trying to rock 
the boat, just trying to row.

Meanwhile, I ran a couple programs against the 2.6.22.1 source to 
get some statistics on the source in the linux kernel tree to 
understand what 'reality' is:

Number of files -- 23742
Number of lines > 80 columns:  247057
Number of lines > 90 columns:  127016
Number of lines > 100 columns: 21

The *winner* at 482 columns is a commented out line in

/linux-2.6.22.1/drivers/pci/hotplug/ibmphp_ebda.c 440 //		debug 
("rio_node_id: %x\nbbar: %x\nrio_type: %x\nowner_id: 
%x\nport0_node: %x\nport0_port: %x\nport1_node: %x\nport1_port: 
%x\nfirst_slot_num: %x\nstatus: %x\n", rio_detail_ptr->rio_node_id, 
rio_detail_ptr->bbar, rio_detail_ptr->rio_type, rio_detail_ptr-
>owner_id, rio_detail_ptr->port0_node_connect, rio_detail_ptr-
>port0_port_connect, rio_detail_ptr->port1_node_connect, 
rio_detail_ptr->port1_port_connect, rio_detail_ptr->first_slot_num, 
rio_detail_ptr->status);

So I think updating the text in coding style one way or another is 
a good thing since there are ~248k exceptions to the style rule...

I can make the bins + scripts I used to gather this and output of 
this run available if anyone is interested.

However, this isn't the whole story.. one of the side effects of 
the patch system through email clients are that the function name 
in the 'git diff' (or comparable) output can tack on 20-25 columns 
of header and further cause wordwrap strife and bring more patches 
into this problem.  It *appears* that many maintainers are pretty 
good at recognizing this and purging portions of the function names 
when forwarding them around, but it's still a bigger and common 
'problem' for the wordwrapping clients.

Example: 
@@ -189,6 +189,9 @@ static __devinit int ixp4xx_pata_probe(struct 
platform_device *pdev)

Common advice appears to be to get smtp working on gmail, and I 
thank the list for their suggestions.  If I get one/two ways 
working that are compliant for patch submittal w/o wordwrap (et al) 
I'll start a 'howto' from my notes on yahoo and gmail/smtp setup 
and post that up on the interweb.

---------------------------------------
Scott Thompson / postfail@hushmail.com
---------------------------------------


^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: Ideas on column length in kernel "problem"?
@ 2007-08-24 19:09 Scott Thompson
  0 siblings, 0 replies; 14+ messages in thread
From: Scott Thompson @ 2007-08-24 19:09 UTC (permalink / raw)
  To: jesper.juhl; +Cc: linux-kernel, kernel-janitors



On Thu, 23 Aug 2007 08:27:09 -0400 Jesper Juhl 
<jesper.juhl@gmail.com> wrote:
>
>At least for gmail the wrap problem only exists if you try and use 
>the
>web interface for sending your patches. If you use a real mail 
>client
>like pine, kmail etc to send your patches through gmail (and 
>remember
>to use their read/insert file functionality instead of 
>cut'n'paste)
>then there is no problem.

I submitted a patch via gmail/smtp after setting the following up 
and all looked well...

gmail --> settings --> forwarding and pop --> enable pop.

directions for setting up thunderbird:
Thunderbird 1.5
http://mail.google.com/support/bin/answer.py?answer=38343

configuring Thunderbird for wordwrap:
Edit -> Preferences -> Composition
Wrap Plain Text Messages at: 99999

.... and that's it...

I'm gathering up a list of free email clients + settings and will 
post a link once a copy is up on the interweb.

---------------------------------------
Scott Thompson / postfail@hushmail.com
---------------------------------------


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

end of thread, other threads:[~2007-08-24 19:10 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-23  3:54 Ideas on column length in kernel "problem"? Scott Thompson
2007-08-23  4:05 ` Adrian Bunk
2007-08-24  8:17   ` Suresh Jayaraman
2007-08-23  7:36 ` Paolo Ornati
2007-08-23 11:56   ` walter harms
2007-08-23 12:00     ` Paolo Ornati
2007-08-23 12:27 ` Jesper Juhl
2007-08-24  1:43 ` Bron Gondwana
2007-08-24 10:31 ` Andi Drebes
2007-08-24 10:46   ` Alan Cox
2007-08-24 11:07     ` Jesper Juhl
  -- strict thread matches above, loose matches on Subject: below --
2007-08-24 16:31 Scott Thompson
2007-08-24 16:51 ` Randy Dunlap
2007-08-24 19:09 Scott Thompson

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