[racket-users] Hi all, I need help in racket

2015-11-27 Thread Alejandro López
I would like to clicking on a window, then appears an image and go counting each pair is a picture and impar is other image. for example first click=image1 second click =image2 third click=image1 fourth click= image2 5 = image1 etc ... -- You received this message because you are subscribed

[racket-users] change DrRacket syntax coloring per-source rather than per-lang?

2015-11-27 Thread mb
In `#lang pollen`, which uses a variant of at-expressions, you can change the command character on a per-source-file basis, so you can say `◊(+ 1 1)` or `∆(+ 1 1)` or `@(+ 1 1)` ... I'm trying to figure out if I can bubble this up to DrRacket for syntax coloring. I see two wrinkles: 1) For

Re: [racket-users] change DrRacket syntax coloring per-source rather than per-lang?

2015-11-27 Thread Robby Findler
I think that you have to make the syntax colorer discover which is the @ character in the same way "#lang pollen" discovers it and then pass that along to the scribble-inside-lexer. (This may require changing scribble-inside-lexer to be more flexible in when it accepts the character.) Lexers have

[racket-users] DrRacket fights `racket` on print behavior in `#lang racket/base`

2015-11-27 Thread Paolo Giarrusso
Here's an example showing that this test will not behave consistently in DrRacket and Racket, because `print` won't. Is that a bug, or is it a "bad practice (tm)" that I ever use `print` programmatically and expect specific output? Take the question as "me learning Racket, somewhat

Re: [racket-users] Value printing in REPL and for students

2015-11-27 Thread Paolo Giarrusso
On 27 November 2015 at 03:48, Robby Findler wrote: > DrRacket pulls some shenanigans with the language dialog-based > teaching languages and it needs some adjust to make things work the > way you want with printing in 'raco test' and 'racket'. I fear I've seen that —

Re: [racket-users] Value printing in REPL and for students

2015-11-27 Thread Robby Findler
I've added "check over/improve handin support" to my teaching languages list of things to fix. :) You should be able to get close pretty easily if you first do print-convert and then do pretty-write. You will want to tweak the parameters that control print-convert based on which language level

Re: [racket-users] Racket v6.3

2015-11-27 Thread Robby Findler
Those are menu items that DrRacket updates via a callback that happens when you click on the menubar, something that has been problematic in the past. I could change DrRacket to avoid doing the update at that time, if that's necessary. The "open recent" submenu in the "file" menu also does stuff

Re: [racket-users] DrRacket fights `racket` on print behavior in `#lang racket/base`

2015-11-27 Thread George Neuner
It's definitely due to printing the values. Notice that it also happens in DrRacket when "show sharing in values" is selected on the Choose Language dialog. I'm not aware of a way to prevent the reader from creating objects with shared structure. You can explicitly disallow use of the #0=

Re: [racket-users] change DrRacket syntax coloring per-source rather than per-lang?

2015-11-27 Thread mb
Sorry for the noob question, but broadly, how does one affect the behavior of the syntax colorer (and thereby the lexer) from the #lang (if not through `get-info`)? On Friday, November 27, 2015 at 8:37:47 AM UTC-8, Robby Findler wrote: > I think that you have to make the syntax colorer

Re: [racket-users] change DrRacket syntax coloring per-source rather than per-lang?

2015-11-27 Thread Robby Findler
That is indeed how. But now that looked at the pollen docs, I see the issue. It looks like you have to be able to run the config submodule of some program to be able to figure out how to syntax color it? That's not generally something that is well-supported, although I suppose you could make it

Re: [racket-users] Racket v6.3

2015-11-27 Thread Robby Findler
Yeah, that's the same issue. DrRacket tries to update that menu in the time after you click on the menubar, before the menus are displayed. It then also follows up with a callback later to do it again since that first attempt can fail. This is something that probably requires a different strategy

Re: [racket-users] Racket v6.3

2015-11-27 Thread John Berry
Under OS X Yosemite I get some odd behavior with the menus. My view menu has missing items, and the windows menu does nothing at all. See picture below: ​ On Tue, Nov 24, 2015 at 6:34 AM, Ryan Culpepper wrote: > Racket version 6.3 is now available from > >