[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Reformatting source code [was: Results of: [VOTE] New space-before-parens style]

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2006-02-14 02:59:02 CET

kfogel@collab.net wrote:
> Jim Blandy <jimb@red-bean.com> writes:
>
>>M-x tags-query-replace pattern: "\_>[ \t]+(" with: "("
>
> Using an FSF Emacs built from today's sources, I ran this. It
> prompted for replacement in comments, and after 'if', 'while', etc, as
> well as on function definitions and function/macro calls.
[...]
> I think some modified version of Peter's elisp is probably going to be
> the way to go here. I'll take a look.

Hey, Karl, are you sure you want to let yourself get sucked into this task? :-)

It's the sort of thing I too often fall for, because I can't bear the thought
that someone else might do it sub-optimally, or might do it by hand when I
could surely automate it with enough effort.

Usually, afterwards, I think "Was it really worth wasting so many hours of my
life on achieving that mundane result?"

Maybe wait for someone else to do it, and then apply a few ad-hoc checks to
random samples of their result ... but no, there's no way they would get it as
right as you could, eh! :-)

All meant in fun. Maybe you even find it a relaxing diversion from lawyers and
mod_dav_svn internals and whatnot.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Feb 14 02:59:33 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.