[racket] [racket-dev] Survey for DrRacket users related to automatic parentheses behavior

From: Nadeem Abdul Hamid (nadeem at acm.org)
Date: Thu Nov 22 23:26:09 EST 2012

>
> A question: What happens when I type ) when I should type ]? E.g.
>
> (cond
>   [(foo x) "one"]
>   [(bar x) "two" |])
>
> where | is the cursor position on the last line there, if I type a )
> on accident, will it jump to the outer paren of the (cond ...) block?
> Will it interpret the keystroke as a ]? Will it signal an error about
> the parenthesis?
>

This would interact with the "automatically adjust closing parenthesis"
preference - if enabled, then yes, when you type ), it will automatically
match it as ] and skip over the ], not inserting anything. If the
preference is disabled, then it would actually insert ) at the cursor
position.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20121122/bb112b2e/attachment.html>

Posted on the users mailing list.