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

Re: Results of: [VOTE] New space-before-parens style

From: <kfogel_at_collab.net>
Date: 2006-02-13 22:26:17 CET

Jim Blandy <jimb@red-bean.com> writes:
> That was entirely subconscious. I meant to say:
>
> M-x tags-query-replace pattern: "\_>[ \t]+(" with: "("
>
> \_> matches the end of an identifier. You want to use [ \t] and not
> \s-, because the latter matches newlines and formfeeds as well; we
> only want horizontal whitespace, for which there is, unfortunately, no
> syntax code.
>
> Of course, you'll need a tags table for this to work in the first place.

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 could literally break the 'y' and 'n' keys on my keyboard if I
follow through with that, I think :-).

Note that I used a literal TAB character in the regexp, instead of \t,
because Emacs warned me interactively that that's the New Right Way to
do it.

I think some modified version of Peter's elisp is probably going to be
the way to go here. I'll take a look.

-Karl

-- 
www.collab.net  <>  CollabNet  |  Distributed Development On Demand
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Feb 14 00:08:03 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.