[plt-scheme] The filename of the file in the definition window
The port should have it:
Welcome to MzScheme v3.99.0.5 [3m], Copyright (c) 2004-2007 PLT Scheme Inc.
> (call-with-input-file "/home/robby/tmp.ss" object-name)
#<path:/home/robby/tmp.ss>
>
but why do you need it?
Robby
On Dec 19, 2007 2:56 PM, Jens Axel Soegaard <jensaxel at soegaard.net> wrote:
> This is almost certainly a can't-see-the-tree-for-the-forrest problem.
>
> I'm writing a small DrScheme tool and need the filename
> (if there is one) in the front-end method.
> But how do I get it?
>
> (define stylesheet-lang-mixin
> (class* object% (drscheme:language:language<%>)
> ...
> (define/private (front-end port settings)
> <need the filename here>
> )
> ...)
>
> --
> Jens Axel Søgaard
>
>
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>