Re: [racket] racket/gui: changing the background color

2014-08-22 Thread David Nelson
I ended up going the canvas% route. To reduce the amount of screen space that had to be redrawn when updating the progress bar or changing the status text, I created my own message% and gauge% classes based on canvas%. The final arrangement was a custom panel% that stretched its children out to the

Re: [racket] Scribble srcdoc and macros

2014-08-22 Thread Jack Firth
Excellent! Thank you for the addition. On Fri, Aug 22, 2014 at 12:49 PM, Matthew Flatt wrote: > I've added `form-doc` to `scribble/srcdoc`. > > Otherwise, I don't think there's a good way to use `thing-doc` to > document syntactic forms. > > At Fri, 15 Aug 2014 13:11:55 -0700, Jack Firth wrote:

Re: [racket] Scribble srcdoc and macros

2014-08-22 Thread Matthew Flatt
I've added `form-doc` to `scribble/srcdoc`. Otherwise, I don't think there's a good way to use `thing-doc` to document syntactic forms. At Fri, 15 Aug 2014 13:11:55 -0700, Jack Firth wrote: > Is there a form similar to proc-doc/names but for providing syntactic forms > instead? Something where it

Re: [racket] help me speed up string split?

2014-08-22 Thread Matthew Flatt
At Fri, 8 Aug 2014 14:07:34 -0700, Ryan Davis wrote: > I assume that made it into the 6.1 release? Sorry, no. The repair came relatively late in the v6.1 release process. Racket Users list: http://lists.racket-lang.org/users

Re: [racket] racket/gui: changing the background color

2014-08-22 Thread Matthew Flatt
There's currently no way to set the background color for `message%` objects, and I'd still use a `canvas%`. At Tue, 5 Aug 2014 10:47:37 -0500, David Nelson wrote: > I am working on a manufacturing system to asynchronously program and test > 16 USB devices. The main display is a grid of "slot" disp

Re: [racket] About closing ports

2014-08-22 Thread Matthew Flatt
Sorry for the long delay here. There's no particular reason for the absence of `close-port`, as far as I know --- just that `close-input-port` and `close-output-port` were always there. It's possible for a value to represent both an input port and an output port, so if that matters at all, you mi

Re: [racket] Setting exception handler for GUI message loop

2014-08-22 Thread Dmitry Cherkassov
Thank you for help. On Fri, Aug 22, 2014 at 7:21 PM, Matthias Felleisen wrote: > > Think along this minimal example: > > #lang racket/gui > > (define frame (new frame% [label "x"][width 200][height 200])) > > (define button > (new button% >[label "hello world"] >[parent frame] >

Re: [racket] Understanding error in use of submodule in my language

2014-08-22 Thread Matthew Flatt
I think this may be a problem in macro expansion with submodules. The `#%module-begin` from `racket/base` adds a submodule declaration for `configure-runtime` when it doesn't see an existing submodule declaration for `configure-runtime` --- but it looks for an existing declaration as an immediate

Re: [racket] Setting exception handler for GUI message loop

2014-08-22 Thread Matthias Felleisen
Think along this minimal example: #lang racket/gui (define frame (new frame% [label "x"][width 200][height 200])) (define button (new button% [label "hello world"] [parent frame] [callback (lambda (b e) (/ 1 0))])) (queue-callback (lambda () (unc

Re: [racket] Setting exception handler for GUI message loop

2014-08-22 Thread Dmitry Cherkassov
WIll that install my exception handler only for calls under `(parameterize uncaught-exception-hamdler () ... )` or for all the stuff in GUI thread? On Fri, Aug 22, 2014 at 6:57 PM, Matthew Flatt wrote: > If you're not already in the handler thread (which is the same as the > initial thread for th

Re: [racket] Setting exception handler for GUI message loop

2014-08-22 Thread Matthew Flatt
If you're not already in the handler thread (which is the same as the initial thread for the initial eventspace), then you can use `queue-callback` to run a thunk in the current eventspace's handler thread. At Fri, 22 Aug 2014 18:51:26 +0400, Dmitry Cherkassov wrote: > > Another possibility is to

Re: [racket] Setting exception handler for GUI message loop

2014-08-22 Thread Dmitry Cherkassov
> Another possibility is to set the `uncaught-exception-handler` parameter (in > the eventspace's main thread). set as dynamic parameter via `parameterize'? how do i get to GUI thread to accomplish that? On Fri, Aug 22, 2014 at 6:37 PM, Matthew Flatt wrote: > Another possibility is to set the

Re: [racket] package builds, updated daily

2014-08-22 Thread Matthew Flatt
At Fri, 22 Aug 2014 09:13:52 -0400, Sam Tobin-Hochstadt wrote: > On Fri, Aug 22, 2014 at 8:53 AM, Matthew Flatt wrote: > > The site > > > > http://pkg-build.racket-lang.org/ > > > > reports the result of a daily build of all packages that are listed at > > "pkgs.racket-lang.org". The builds use

Re: [racket] Setting exception handler for GUI message loop

2014-08-22 Thread Matthew Flatt
Another possibility is to set the `uncaught-exception-handler` parameter (in the eventspace's main thread). At Fri, 22 Aug 2014 10:37:35 -0400, Matthias Felleisen wrote: > > Your question is somewhat generic. You will need to equip each callback/event > handler with an exn handler that puts the

Re: [racket] Setting exception handler for GUI message loop

2014-08-22 Thread Matthias Felleisen
Your question is somewhat generic. You will need to equip each callback/event handler with an exn handler that puts the exception into a channel so that another thread can pick it up. -- Matthias On Aug 22, 2014, at 6:58 AM, Dmitry Cherkassov wrote: > Hi! > > Is it possible to set an exc

Re: [racket] package builds, updated daily

2014-08-22 Thread Laurent
That's awesome! Thank you Matthew and those who made this possible, this no doubt improves a lot the usability of packages. Laurent On Fri, Aug 22, 2014 at 2:53 PM, Matthew Flatt wrote: > The site > > http://pkg-build.racket-lang.org/ > > reports the result of a daily build of all packages t

Re: [racket] package builds, updated daily

2014-08-22 Thread Sam Tobin-Hochstadt
On Fri, Aug 22, 2014 at 8:53 AM, Matthew Flatt wrote: > The site > > http://pkg-build.racket-lang.org/ > > reports the result of a daily build of all packages that are listed at > "pkgs.racket-lang.org". The builds use the current release of Racket > (version 6.1), and the site includes document

[racket] package builds, updated daily

2014-08-22 Thread Matthew Flatt
The site http://pkg-build.racket-lang.org/ reports the result of a daily build of all packages that are listed at "pkgs.racket-lang.org". The builds use the current release of Racket (version 6.1), and the site includes documentation for packages that build successfully. We expect to get these

[racket] Setting exception handler for GUI message loop

2014-08-22 Thread Dmitry Cherkassov
Hi! Is it possible to set an exception handler to GUI message loop, so that any exception thrown in GUI thread can be handled? -- With best regards, Dmitry Racket Users list: http://lists.racket-lang.org/users