Re: [racket] Curious error messages

2014-12-03 Thread Stephen De Gabrielle
I've had the same thing using scribble, but including screenshot images I just assumed it was pdflatex that was calling libpng, and the problem was either pdflatex how it was passing the image to libpng, or libpng itself, rather than anything in racket. (It seemed like a rabbit-hole that I was unli

[racket] Curious error messages

2014-12-03 Thread Prabhakar Ragde
I'm currently using Racket 6.1. For some time now, when editing Scribble files in DrRacket, I've been getting "file has changed on disk" messages when trying to save or render - not consistently, just every so often. These are files I am not editing in anything other than DrRacket. I click "ign

Re: [racket] [racket-bug] all/14865: Instances of button% don't not respond to (stretchable-height #t) and [min-height 300].

2014-12-03 Thread Antony Blakey
> On 4 Dec 2014, at 02:34, Stephen De Gabrielle wrote: > > OT Is native 'look n' feel' still the big deal it was in the 90's? On OSX, absolutely. I'm responsible for the Native L&F for VisualWorks Smalltalk (which is entirely synthetic), and it's a big deal for many of our customers. Even on

Re: [racket] Continuation in embedding Racket

2014-12-03 Thread Nesterov Kirill
> (call-with-continuation-prompt (lambda () (generate-digit))) With this I'm getting segfault. May be my eval handler can clear this situation: bool idaapi Racket_cli_execute_line(const char *line){ if(!global_env) msg("Racket global_env is null!\n"); else{ mz_jmp_buf * volatile save

Re: [racket] Continuation in embedding Racket

2014-12-03 Thread Matthew Flatt
I don't think CGC versus 3m is relevant. My guess is that you need to wrap a prompt around each evaluation of a top-level form. You can try this manually at first: Does it work to change each `(generate-digit)` at the end below to (call-with-continuation-prompt (lambda () (generate-digit))) ? I

[racket] Continuation in embedding Racket

2014-12-03 Thread Nesterov Kirill
Hi all, I'm trying to embed racket 3m version as interpreter into GUI application. For custom interpreters this application have two required APIs - first one is init and the second one is eval string. So in init I'm calling scheme_register_tls_space and scheme_main_setup after. And in eval I'm

Re: [racket] how to get exact results from get-text-extent

2014-12-03 Thread Matthew Butterick
That's helpful, thanks. I was considering either 64-bit flonum millimeters or 64-bit fixnum nanometers. If there's not a meaningful speed advantage, I'll go with flonum millimeters, because they're more readable and thinkable. Points are traditional in typesetting systems, but that's a habit wort

Re: [racket] Fwd: [racket-bug] all/14865: Instances of button% don't not respond to (stretchable-height #t) and [min-height 300].

2014-12-03 Thread Stephen De Gabrielle
OT Is native 'look n' feel' still the big deal it was in the 90's? After the web and smartphones I'm wondering if anyone cares if my app blends in neatly with the desktop OS GUI? My users deal with so many different user interfaces, ranging from distinclty Win3.1 applications, winXP era VB gui's,

Re: [racket] Fwd: [racket-bug] all/14865: Instances of button% don't not respond to (stretchable-height #t) and [min-height 300].

2014-12-03 Thread Stephen De Gabrielle
Even a tiny bitmap will make the button vertically stretchy, but it weirdly makes the button bigger. add this to my last test (new button% [label (list (make-bitmap 1 1) "stretchy" 'left )] [parent frame] (stretchable-width #t) (stretchable-height #t) (callback (lamb

[racket] Scribble - documenting interactions with custom readers

2014-12-03 Thread Pedro Ramos
Using Scribble, how can I use @interaction to document examples in different languages? I have noticed the example for Typed Racket on chapter "4.5 Evaluation and Examples", but is there a way to use @interaction or a similar Scribble function with a language with a custom reader?

Re: [racket] Fwd: [racket-bug] all/14865: Instances of button% don't not respond to (stretchable-height #t) and [min-height 300].

2014-12-03 Thread Stephen De Gabrielle
I've worked out it only happens when you have a single line of text- two lines stretch fine, bitmap stretch fine too --- #lang racket/gui ;;; The top-level frame (define frame (instantiate frame% ("Test"))) (new button% [label (send /paste in an image/ get-bitmap)] [parent frame

Re: [racket] Fwd: [racket-bug] all/14865: Instances of button% don't not respond to (stretchable-height #t) and [min-height 300].

2014-12-03 Thread Jens Axel Søgaard
> Is anyone else getting this bug? Yes 2014-12-03 15:59 GMT+01:00 Stephen De Gabrielle : > Is anyone else getting this bug? > > On OS X buttons stretch horizontally, but not vertically > > Cheers, > Stephen > > Test > #lang racket/gui > > ;;; The top-level frame > (define frame > (instantiate fr

Re: [racket] Fwd: [racket-bug] all/14865: Instances of button% don't not respond to (stretchable-height #t) and [min-height 300].

2014-12-03 Thread Matthew Flatt
I believe the issue is that the underlying Cocoa widget doesn't stretch vertically. Even tough `racket/gui` asks the button to be taller, Cocoa draws the button the at the original height. There's an alternative button style that does stretch, and `racket/gui` falls back to that alternative style

[racket] Fwd: [racket-bug] all/14865: Instances of button% don't not respond to (stretchable-height #t) and [min-height 300].

2014-12-03 Thread Stephen De Gabrielle
Is anyone else getting this bug? On OS X buttons stretch horizontally, but not vertically Cheers, Stephen Test #lang racket/gui ;;; The top-level frame (define frame (instantiate frame% ("Test"))) (new button% [label "Stretchy Button :)"] [parent frame] (stretchable-width