You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Julian Foad <ju...@btopenworld.com> on 2006/02/14 01:59:02 UTC
Reformatting source code [was: Results of: [VOTE] New space-before-parens
style]
kfogel@collab.net wrote:
> Jim Blandy <ji...@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
Re: Reformatting source code [was: Results of: [VOTE] New space-before-parens style]
Posted by kf...@collab.net.
Julian Foad <ju...@btopenworld.com> writes:
> Hey, Karl, are you sure you want to let yourself get sucked into
> this task? :-)
Why no, not sure at all :-).
> 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.
Well, in a way it is a relaxing diversion, yes. But it's more that,
now that we've voted, I don't want to see us stuck in a wait-wait loop
about actually implementing our choice. Didn't see anyone else saying
"I'll take care of this", so...
(Also I know Elisp, which might be important given that GNU indent
isn't going to help us.)
But if you want a crack at this, I'll happily step aside. Just say
the word :-).
-Karl
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org