[racket-dev] open untagged files in blank language level?

From: John Clements (clements at brinckerhoff.org)
Date: Mon Oct 10 03:08:38 EDT 2011

On Oct 8, 2011, at 7:47 AM, Robby Findler wrote:

> Okay, here's what I've done for the upcoming release. (It is a kind-of
> patch on the existing setup, but perhaps that's appropriate, since the
> right long-term solution is to  move everything to #lang.)
> When a file is opened, and the language that would have been used is a
> language that returns non-#f from get-reader-sexp (that means that
> that language is one that adds metadata to the save file; currently
> this includes the deinprogramm languages and the HtDP languages (and
> possibly others)), then the language used is instead the
> not-a-language language (that is the one you get when you have a fresh
> preferences file).
> In other words, I believe that this will have this effect:
>  - after choosing a teaching language from the language dialog
>  - and then opening a file that does not contain a prefix (no #lang prefix
>    and no teaching languages prefix)
>  - the language for that window will be set to the not-a-language language.
> And hopefully no other effects.

That sounds great. Many thanks.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4624 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20111010/78ee1a40/attachment.p7s>

Posted on the dev mailing list.