From: Warren Young Date: November 10 2008 11:33pm Subject: Re: insertfrom( ) questions List-Archive: http://lists.mysql.com/plusplus/8128 Message-Id: <4918C4D8.4070800@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Rick Gutleber wrote: > Ah, tabs, the bane of my existence, which is why I made a point to never > use them about, oh, 20 years ago. I'd be happier using spaces if the editors I used would treat them exactly like tabs. :) Some editors the kids are using these days don't quite get how to do this. If it takes me 4 keystrokes to cursor through an indent level, I'm back to tabs. > I realized there were whitespace > changes in the patch, some of which seemed to have been caused by > trailing white space on lines (which I have my editor set to strip) in > addition to tabs vs. spaces. I redid my changes to eliminate some of > it, but should have done more. It can be tricky to back such changes out, because it isn't obvious what whitespace is needed to pacify svn's diff. I find that the simplest method is to make a copy of the patch file, revert your changes, hand-hack the patch to remove the unwanted change lines, and reapply it. The hard part is not breaking the patch, which is why you keep a pristine copy. Do this enough times and you figure out what's precious to patch(1) and what isn't. > I also wasn't sure what the convention was because mysql++.bkl didn't > have tabs (actually it has a couple, but mostly not). Fixed. I said "documentation" above, but it's really more general than that. I use spaces, size 2 indents, for HTML or anything XMLish, due to the high levels of indenting you often get. > I suppose I should have just asked. I'll put it in HACKERS.txt