Re: [racket-users] Re: raco distribute and runtime paths, conditioned on whether a package was installed at compile time

2019-11-12 Thread Jon Zeppieri
On Tue, Nov 12, 2019 at 10:13 PM Matthew Flatt wrote: > > At Tue, 12 Nov 2019 19:46:01 -0700, Matthew Flatt wrote: > > Although you can find the files using `find-share-dir` and/or > > `find-user-share-dir`, adding a 'share mode to `define-runtime-path` > > would make it possible for `raco distrib

Re: [racket-users] Re: raco distribute and runtime paths, conditioned on whether a package was installed at compile time

2019-11-12 Thread Matthew Flatt
At Tue, 12 Nov 2019 19:46:01 -0700, Matthew Flatt wrote: > Although you can find the files using `find-share-dir` and/or > `find-user-share-dir`, adding a 'share mode to `define-runtime-path` > would make it possible for `raco distribute` to find and carry along a > directory/file when it's present

Re: [racket-users] Re: raco distribute and runtime paths, conditioned on whether a package was installed at compile time

2019-11-12 Thread Matthew Flatt
At Tue, 12 Nov 2019 21:29:44 -0500, Jon Zeppieri wrote: > I like the idea of installing the data to a "share" directory. I see > that the `info.rkt` file for a collection has a `copy-shared-files` > key. In my case, both the `tzinfo` package and the `tzdata` package > contribute to the `tzinfo` col

Re: [racket-users] Re: raco distribute and runtime paths, conditioned on whether a package was installed at compile time

2019-11-12 Thread Jon Zeppieri
On Tue, Nov 12, 2019 at 2:09 PM Matthew Flatt wrote: > > I'd say the problem is that "info.rkt" and `find-relevant-directories` > are set up as Racket-installation concepts. They're not made to play > well with standalone applications. > > The most similar concept that plays well with standard app

Re: [racket-users] What is the best way to display styled text in a Racket GUI app?

2019-11-12 Thread Martin DeMello
I just figured this out for my current project; I'm not sure it's the best way but it's a working way :) I have a subclass of text% that mixes in html-text-mixin, and then I populate it via render-html-to-text. You can see the code here: https://github.com/martindemello/exolve-editor/blob/master/g

[racket-users] What is the best way to display styled text in a Racket GUI app?

2019-11-12 Thread Andre Garzia
Hi Friends, Does anyone here know what is the best way to show styled text in a Racket GUI application? I've got some markdown that I wish to display but I can't find how to display any form of styled text, let alone markdown. I've started a little project to implement webviews but I think

Re: [racket-users] Problem building racket in-place

2019-11-12 Thread 'Reuben Thomas' via Racket Users
On Tue, 12 Nov 2019 at 17:53, Matthew Flatt wrote: > At Thu, 7 Nov 2019 23:14:52 +, "'Reuben Thomas' via Racket Users" > wrote: > > I have a CONFIG_SITE environment variable which contains the following > line: > > > > test "$prefix" = NONE && prefix="$HOME_LOCAL" > > > > (HOME_LOCAL is set t

Re: [racket-users] Re: raco distribute and runtime paths, conditioned on whether a package was installed at compile time

2019-11-12 Thread Matthew Flatt
At Sun, 10 Nov 2019 15:26:58 -0500, Jon Zeppieri wrote: > That is, the tzdata package defines, in an info.rkt file, a key named > `tzdata-zoneinfo-module-path`. I use that to determine if the package > is installed, and, if so, I create a runtime path for it and add that > path to the head of a lis

Re: [racket-users] Problem building racket in-place

2019-11-12 Thread Matthew Flatt
At Thu, 7 Nov 2019 23:14:52 +, "'Reuben Thomas' via Racket Users" wrote: > I have a CONFIG_SITE environment variable which contains the following line: > > test "$prefix" = NONE && prefix="$HOME_LOCAL" > > (HOME_LOCAL is set to $HOME/.local) > > Things then go wrong because racket/src/start/

Re: [racket-users] reading code

2019-11-12 Thread Shu-Hung You
On Mon, Nov 11, 2019 at 10:30 AM Hendrik Boom wrote: > > On Fri, Oct 25, 2019 at 11:31:41AM +0200, Niklas Larsson wrote: > > Hi! > > > > If you right click on an identifier in drracket you get “jump to binding > > occurrence” and “jump to definition” (if it’s defined in another file). > > Don’t