[plt-scheme] modifying preferences from a collection .plt

From: Robby Findler (robby at cs.uchicago.edu)
Date: Tue Aug 21 02:32:02 EDT 2007

The preferences system isn't really set up for what you're doing
(changing the user's preferences when your tool is installed), but I
think you should be able to figure it out.

Robby

On 8/21/07, Arjun Guha <arjun at cs.brown.edu> wrote:
> Ah, sorry, I didn't realize that I needed to set defaults and
> marshalling procedures myself when using (lib "preferences.ss"
> "framework").  Apparently, (lib "framework.ss" "framework") sets that
> up itself. (There was also a logical bug in the code I'd posted, but
> that's something else.)
>
> Arjun
>
> On Aug 20, 2007, at 22:45 , Robby Findler wrote:
>
> > Oh, right. Now read the docs.
> >
> > Robby
> >
> > On 8/20/07, Arjun Guha <arjun at cs.brown.edu> wrote:
> >>
> >> On Aug 20, 2007, at 20:59 , Robby Findler wrote:
> >>
> >>> Try (require (lib "preferences.ss" "framework")) instead.
> >>
> >> I'd tried that earlier.  That gives me a different error during
> >> setup-
> >> plt:
> >>
> >> setup-plt: Post-Installing PLAI
> >> preferences:get: tried to get a preference but no default set for
> >> framework:tabify
> >>
> >>   === context ===
> >> /Applications/PLT/collects/framework/preferences.ss:170:2: raise-
> >> unknown-preference-error
> >> preferences:get
> >> /Users/arjun/Library/PLT Scheme/371/collects/plai/private/post-
> >> installer.ss:18:4: post-installer
> >>
> >> Arjun
> >>
>
>


Posted on the users mailing list.