[plt-scheme] Parentheses and color

From: Grant Rettke (grettke at acm.org)
Date: Wed Jul 4 11:36:45 EDT 2007

Is stuff like this obvious to folks new to DrS?

Would it be worth putting up a "5-minute tutorial for getting the most
out of editing Scheme in Drs"?

> Say that you have this:
>
>   (define (foo x y)
>     (bar (blah x)
>          y))
>
> and you want to put the body in a parameterize.  IIUC, you'll stick
> the "(parameterize ([my-param 1])" line, then the closing paren (which
> you'll look for using colors (which will be confusing, because you
> added a new paren so the colors don't match)), and then reindent.
>
> Here's what I'll do:
>
> * Put the cursor right before the "(bar ..." line
> * `M-S-right'        (`M' is usually the `alt' key)
> * `M-('              (that is, alt+shift+9 on a us keyboard)
> * type "parameterize "
> * `M-('
> * `M-['
> * type "my-param 1"
> * `right' `right'    (to go to where the line should break)
> * `enter'
> * `M-S-right' `tab'  (to reindent the body)


Posted on the users mailing list.