<br><br><div class="gmail_quote">On Tue, Jul 19, 2011 at 16:53, Rodolfo Carvalho <span dir="ltr"><<a href="mailto:rhcarvalho@gmail.com" target="_blank">rhcarvalho@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="gmail_quote">2011/7/16 Matthias Felleisen <span dir="ltr"><<a href="mailto:matthias@ccs.neu.edu" target="_blank">matthias@ccs.neu.edu</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><br>
On Jul 16, 2011, at 10:04 AM, José Lopes wrote:<br>
<br>
> The second feature is the ability to expand/collapse function definitions, i.e., hide<br>
> the body of a function and just see the name and parameters.<br>
<br>
</div>You can collapse S-expressions into dots in DrRacket. Perhaps we should offer a menu item to do this for all top-level defines or all class-level defines etc.</blockquote><div><br></div><div><br></div><div>I tried this option some time ago.</div>
<div>I can collapse s-expressions by right-clicking them and choosing "Collapse S-expression", and expand back in a similar fashion.</div><div><br></div><div>That works good for editing the file. Having a way to toggle top-level defines would sure be useful.</div>
<div><br></div><div>However, whenever I use this feature and save the file it goes in "GRacket editor format", and though it's still a text file, that's not wanted in many cases (for me) (for instance it doesn't play that nice with version control).</div>
<div><br></div><div>(At least that's what I observe in Racket 5.1.1)</div><div><br></div><div>Is there a way to force saving in "text-only" format? (And keep the (...) forms in the editor)</div><div><br><br>
</div></div></blockquote><div><br>I'd love that too! (annotated source files can hardly be used in different editors)<br>It probably means that folding is reset each time the file is re-opened, but really I'd be very happy with that. <br>
</div></div><br>Laurent<br>