Skip to contentSkip to conversation

Ideas on column length in kernel "problem"?

DISCUSSION Scott Thompson 9 participants 11 messages Aug 23, 2007 – Aug 24, 2007 Kernel janitors

lore
Share & tools
lore
#0 lore raw

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 / [email protected]
---------------------------------------

#1 lore raw
Quoted 13 lines · Scott Thompson

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.

Quoted 5 lines

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 ...

Most people get it right, so there must be a solution available that doesn't involve changing the kernel. ;-)

Most likely the problem is that you cut'n'paste your patches into your email client (or the editor your email client opens). If your client has some "Insert File" functionality use this instead.

Quoted 4 lines

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.

Open source email clients I have personally used to send patches are (al)pine with the included pico as editor and mutt with nano as editor, but it might be harder to find ones that don't work than ones that do work...

cu
Adrian

Signature · 4 lines
       "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
#2 lore raw
Quoted 6 lines · Scott Thompson
Quoted 6 lines

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.

I too had thought about this problem. I think email clients do wordwrap to improve readability. But, in some cases we just might have to override. ( I had an experience of sending a malformed patch just because my wordwrap setting for vim and my email client were different)

What should be ideally expected out of a good email client? Is it sufficient if the email client provides a facility to disable wordwrap while inserting file alone and does wordwrap while typing text? or is it expected to provide a configurable option to enable/disable wordwrap. I don't think keeping wordwrap disabled all the time is a good idea because it makes it difficult to read mails.

Do we have a suggested wordwrap setting w.r.t kernel code?

Signature · 1 line
Suresh Jayaraman
#3 lore raw
In reply to Scott Thompson
Quoted 3 lines · On Wed, 22 Aug 2007 23:54:41 -0400 "Scott Thompson" <[email protected]>…

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.

http://www.claws-mail.org/

Configuration -> Preferences -> Wrapping:

" [x] Auto wrapping
[ ] Wrap quotation
[ ] Wrap pasted text

Wrap messages at [..] characters"

Then use the "Insert File" button or (xclip < mypatch.diff && middle mouse button).

Either will wrap with "Wrap pasted text", so keep it off.

PS: auto wrapping has effect on the text you write directly in the mailer, you can even turn it off and use "CTRL + L" to wrap the current paragraph.

Signature · 2 lines
	Paolo Ornati
	Linux 2.6.23-rc3-g2a677896-dirty on x86_64
#4 lore raw
Quoted 15 lines · Paolo Ornati
Quoted 3 lines · On Wed, 22 Aug 2007 23:54:41 -0400 "Scott Thompson" <[email protected]>…

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.

http://www.claws-mail.org/

Configuration -> Preferences -> Wrapping:

" [x] Auto wrapping
[ ] Wrap quotation
[ ] Wrap pasted text

Quoted 5 lines

Wrap messages at [..] characters"

Then use the "Insert File" button or (xclip < mypatch.diff && middle mouse button).

xclip converts tabs to space if i remember correctly

re,
wh

Quoted 7 lines

Either will wrap with "Wrap pasted text", so keep it off.

PS: auto wrapping has effect on the text you write directly in the mailer, you can even turn it off and use "CTRL + L" to wrap the current paragraph.

#5 lore raw
Quoted 1 line · On Thu, 23 Aug 2007 13:56:48 +0200 walter harms <[email protected]> wrote:

xclip converts tabs to space if i remember correctly

no, it doesn't

paolo@tux ~ $ echo -e "\tHello" | xclip

(middle mouse button)

Hello

:)

Signature · 2 lines
	Paolo Ornati
	Linux 2.6.23-rc3-g2a677896-dirty on x86_64
#6 lore raw
In reply to Scott Thompson
Quoted 7 lines · Scott Thompson

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.

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.

Signature · 3 lines
Jesper Juhl <[email protected]>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html
#7 lore raw
In reply to Scott Thompson
Quoted 4 lines · Scott Thompson

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.

<disclaimer>I work for them</disclaimer>

FastMail (http://fastmail.fm/) have a tickbox in the web interface so you can turn off line-wrapping if you need to.

Otherwise, as other people have said, use direct SMTP (we don't allow it for non-paying accounts, but do for all levels of paying user) and use a sane local client (in my case mutt+offlineimap)

Bron.

#8 lore raw
In reply to Scott Thompson
Quoted 4 lines

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.

It happens so often that people send mangled patches that it might be useful to create a wiki page or something with the most common email clients and a sample configuration that prevents them from mangling patches. Maybe somebody feels like doing so in his / her spare time.

Quoted 5 lines

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 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."

So actually there shouldn't be any line longer than that. Perhaps it would be nice to create a patches that shorten the lines and to send them to the kernel-janitors ml.

<snip>

Quoted 4 lines

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.

see above.

Cheers,
Andi

#9 lore raw
Quoted 4 lines

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.

#10 lore raw
Quoted 8 lines · Alan Cox
Quoted 4 lines

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.

So let's update CodingStyle once and for all so that doesn't pop up again. See attached patch (inline version is whitespace damaged - can't help it from my current location).

As continuously gets pointed out, the 80 col line length defined in CodingStyle is not a hard limit in real life. Let the document reflect reality.

---

CodingStyle 2007-08-24 13:04:20.000000000 +0200 renamed from CodingStyle~ 2007-08-24 13:04:20.000000000 +0200 +2 -1
@@ -77,7 +77,8 @@
 Coding style is all about readability and maintainability using commonly
 available tools.
 
-The limit on the length of lines is 80 columns and this is a hard limit.
+The limit on the length of lines is 80 columns. This is a soft limit, it can
+be broken in some cases, but you should respect it whenever possible.
 
 Statements longer than 80 columns will be broken into sensible chunks.
 Descendants are always substantially shorter than the parent and are placed
Signature · 3 lines
Jesper Juhl <[email protected]>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html

As continuously gets pointed out, the 80 col line length defined in CodingStyle is not a hard limit in real life. Let the document reflect reality.

---

CodingStyle renamed from CodingStyle~ +2 -1
@@ -77,7 +77,8 @@
 Coding style is all about readability and maintainability using commonly
 available tools.
 
-The limit on the length of lines is 80 columns and this is a hard limit.
+The limit on the length of lines is 80 columns. This is a soft limit, it can
+be broken in some cases, but you should respect it whenever possible.
 
 Statements longer than 80 columns will be broken into sensible chunks.
 Descendants are always substantially shorter than the parent and are placed