My emacs mode at <a href="https://github.com/carl-eastlund/simple-sexp">https://github.com/carl-eastlund/simple-sexp</a> uses meta+[ to bracket-ify the following s-expression. Same for meta+( and meta+{, although it doesn't always get reader macros right such as '( ... ) or #,( ... ). It tends to mis-detect them as non-parenthesized and leave them alone. The workaround is to temporarily put in a space after the reader characters, before the open paren/bracket/brace.<br>
<br>This isn't an auto-fix, but hopefully it's a step in the right direction.<br><div class="gmail_extra"><br clear="all">Carl Eastlund<br>
<br><br><div class="gmail_quote">On Tue, Nov 20, 2012 at 1:06 PM, Eric Tanter <span dir="ltr"><<a href="mailto:etanter@dcc.uchile.cl" target="_blank">etanter@dcc.uchile.cl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(even better would be a way to racketify a whole file at once -- a dream?)<br>
<br>
-- Éric<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Nov 20, 2012, at 3:01 PM, Eric Tanter wrote:<br>
<br>
> Hi,<br>
><br>
> I'm converting code written with only standard parentheses, introducing squared ones where appropriate.<br>
><br>
> This is obviously not very fun (I'm converting all of OOPLAI), and it would be great if there'd be a way to select an open paren and "convert" it so that the matching closing paren is changed automatically.<br>
><br>
> Is this feasible?<br>
><br>
> Thanks,<br>
><br>
> -- Éric<br>
><br>
> ____________________<br>
> Racket Users list:<br>
> <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
><br>
<br>
<br>
____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
<br>
</div></div></blockquote></div><br></div>