Re: [racket] Modified esc;w

2013-09-13 Thread Robby Findler
You can build from git: https://github.com/plt/racket/; you can manually apply a similar diff to this one: https://github.com/plt/racket/commit/c0462d0fed6d37c1f038dde141021f63505902b5 or you can get a snapshot build (but this commit won't be in there for about 12-14 hours I guess): http://pl

[racket] Modified esc;w

2013-09-13 Thread Eduardo Costa
Sorry, I replied directly to Robby Findler, instead of sending the request to the list, so others can also profit of Robby's answer. Where can one get the modified esc;w? Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Lifting submodules

2013-09-13 Thread Matthew Flatt
Right -- there's currently no way to lift a module declaration after expansion starts working on expressions within a module. I think that operation could be added, and I'll look into it as soon as possible. At Fri, 13 Sep 2013 19:41:55 -0700, Eric Dobson wrote: > Which lifting function? All of t

Re: [racket] How to make slide align left in Slideshow

2013-09-13 Thread ironson
Thank you very much! I know what to do now. 2013-09-14 ironson 发件人:Stephen Chang 发送时间:2013-09-14 01:49 主题:Re: [racket] How to make slide align left in Slideshow 收件人:"J. Ian Johnson" 抄送:"Racket Users" > I tend to just use (vl-append gap-size items ...) That doesn't align left relative to

Re: [racket] Emacs keybinding

2013-09-13 Thread Robby Findler
I've changed esc;w so that it disables the anchor. Meanwhile, I would welcome someone who wanted to take on the task of a more comprehensive set of Emacs-like keybindings for DrRacket. Robby On Fri, Sep 13, 2013 at 7:28 PM, Eduardo Costa wrote: > I notice that there are many keystrokes missin

Re: [racket] Lifting submodules

2013-09-13 Thread Eric Dobson
Which lifting function? All of the ones I found didn't do what I needed when called from an expression context, as the lifted syntax was also in expression context. (syntax-local-lift-expression, and syntax-local-lift-module-end-declaration) On Fri, Sep 13, 2013 at 1:53 PM, Matthias Felleisen wro

[racket] Emacs keybinding

2013-09-13 Thread Eduardo Costa
I notice that there are many keystrokes missing in emacs keybindings. Besides this copy-clipboard (M-w) does not work like in emacs. When I mark a region and press Alt-w, the editor does not exit select mode. This means that I am not able to move to another place and paste the selected region. If I

Re: [racket] (sqlite3-connect) does not survive "raco distribute" on Windows, saying "sqlite3_open: implementation not found"

2013-09-13 Thread Matthew Flatt
That's the right idea, but the "libsqlite3" is also needed for Mac OS X PPC. I think that (define-runtime-path sqlite-path (case (system-type) [(windows) '(so "sqlite3")] [else '(so "libsqlite3")])) is probably best, along the same lines as `openssl/libcrypto`. At Fri, 13 Sep 201

Re: [racket] Lifting submodules

2013-09-13 Thread Matthias Felleisen
Lift the module definition to top and require in the expression position? On Sep 13, 2013, at 12:08 PM, Eric Dobson wrote: > I want to write a macro which generates submodules and then possibly > requires them. This is so that can easily use another language (TR) > for the expression. > > If

Re: [racket] (sqlite3-connect) does not survive "raco distribute" on Windows, saying "sqlite3_open: implementation not found"

2013-09-13 Thread Ryan Culpepper
Thanks, fixed. Ryan On 09/13/2013 01:20 PM, Matthew Flatt wrote: That's the right idea, but the "libsqlite3" is also needed for Mac OS X PPC. I think that (define-runtime-path sqlite-path (case (system-type) [(windows) '(so "sqlite3")] [else '(so "libsqlite3")])) is probab

[racket] Lifting submodules

2013-09-13 Thread Eric Dobson
I want to write a macro which generates submodules and then possibly requires them. This is so that can easily use another language (TR) for the expression. If all uses of the macro are at the top-level/module-level this is easy and I can expand out to something like: (begin (module new-mod type

[racket] (sqlite3-connect) does not survive "raco distribute" on Windows, saying "sqlite3_open: implementation not found"

2013-09-13 Thread Dmitry Pavlov
Hello, [I actually filed a bug report, but have not received a confirmation, and decided to write here as well.] A program does a call to (sqlite3-connect). The program works well itself, and it works well after being translated into an executable by "raco exe", but "raco distribute" breaks it

Re: [racket] (sqlite3-connect) does not survive "raco distribute" on Windows, saying "sqlite3_open: implementation not found"

2013-09-13 Thread Ryan Culpepper
I've pushed what I believe is a fix. I think the issue is that raco distribute needs to bundle the Racket copy of sqlite3.dll on Windows, since it's not a system library. Here's the code: ;; On Windows, raco distribute should include the local sqlite3.dll; ;; other platforms have libsqlite3 as

Re: [racket] How to make slide align left in Slideshow

2013-09-13 Thread Stephen Chang
I dont think there's any way to specify the alignment of the entire slide. You'd have to do each element separately. For example, using (para "Please align left") as the title would align left and (para #:align 'right "Please align left") would align right. If all your slides have the same st

Re: [racket] How to make slide align left in Slideshow

2013-09-13 Thread Stephen Chang
> I tend to just use (vl-append gap-size items ...) That doesn't align left relative to the entire slide. You'd have to wrap a para or something else around it. Here is a super basic macro that aligns-left everything on a slide: (define-syntax-rule (left-slide title x ...) (slide #:title (para

Re: [racket] How to make slide align left in Slideshow

2013-09-13 Thread Laurent
In complement, note that it's quite common to use (item "Some text") and (subitem "One precision: ..."), which are left-aligned (but, like `para', has a #:align keyword for another kind of alignment). Laurent On Fri, Sep 13, 2013 at 6:11 PM, Stephen Chang wrote: > I dont think there's any way

[racket] How to make slide align left in Slideshow

2013-09-13 Thread ironson
Hi all, I am writing for a presentation using Slideshow. I want to align picts left. But it aligns center. Below is my code #lang slideshow (slide #:title "Please align left" (t "Hello") (t "World")) Thanks! 2013-09-13 ironson Racket Users list: http://lists.rack

Re: [racket] Evaluating code written in non-SEXP language

2013-09-13 Thread Dmitry Pavlov
Matthew, I think the problem may be that "#lang" is triggering a search for `slon/main` before falling back to `slon/lang/reader`, and since no `slon/main` is embedded, the attempt looks for a "slon" collection. The "#lang" search continues as it should when an "slon" collection is found and no

Re: [racket] property pict-convertible in typed racket

2013-09-13 Thread Eric Dobson
Currently we do not have a safe way of checking #:property options in TR, so writing the struct in R and requiring it is the only solution right now. On Fri, Sep 13, 2013 at 12:42 AM, Daniele Capo wrote: > Hello, > > in a personal project I'm working on I've some structure that has to be > printe

Re: [racket] Evaluating code written in non-SEXP language

2013-09-13 Thread Matthew Flatt
At Fri, 13 Sep 2013 17:54:47 +0400, Dmitry Pavlov wrote: > Matthew, > > > Assuming that this module is `slon/lang/reader`, does it help to add > > > > ++lib slon/lang/reader > > > > to the `raco exe` command, along with the `++lib` argument that you > > have already? > > Unfortunately, no. N

Re: [racket] Evaluating code written in non-SEXP language

2013-09-13 Thread Dmitry Pavlov
Matthew, Assuming that this module is `slon/lang/reader`, does it help to add ++lib slon/lang/reader to the `raco exe` command, along with the `++lib` argument that you have already? Unfortunately, no. Nothing has changed: $ raco exe ++lib slon/slon-language ++lib slon/lang/reader slon

Re: [racket] Evaluating code written in non-SEXP language

2013-09-13 Thread Matthew Flatt
At Fri, 13 Sep 2013 17:21:09 +0400, Dmitry Pavlov wrote: > > You have a reader for your language that is triggered by "#lang", > > right? > > > > Is that reader in a `reader` submodule, or is it in a separate > > ".../lang/reader.rkt" module file? > > In a separate file: > > $ cat lang/reader.rk

Re: [racket] Evaluating code written in non-SEXP language

2013-09-13 Thread Dmitry Pavlov
Matthew, > You have a reader for your language that is triggered by "#lang", right? Is that reader in a `reader` submodule, or is it in a separate ".../lang/reader.rkt" module file? In a separate file: $ cat lang/reader.rkt (module reader syntax/module-reader #:language 'slon/slon-languag

Re: [racket] Evaluating code written in non-SEXP language

2013-09-13 Thread Matthew Flatt
You have a reader for your language that is triggered by "#lang", right? Is that reader in a `reader` submodule, or is it in a separate ".../lang/reader.rkt" module file? At Fri, 13 Sep 2013 17:01:36 +0400, Dmitry Pavlov wrote: > Matthew, > > Many thanks! Your code works perfectly for my program

Re: [racket] Evaluating code written in non-SEXP language

2013-09-13 Thread Dmitry Pavlov
Matthew, Many thanks! Your code works perfectly for my program. Now I would like to describe my tries to make a standalone executable out of my program. Most obvious way fails: $ raco exe slon-main.rkt $ ./slon-main standard-module-name-resolver: collection not found collection: "slon" in

[racket] [ANN] *Extended Deadline* CFP for 2013 Workshop on Scheme and Functional Programming

2013-09-13 Thread William Byrd
The paper submission deadline has been extended one week, to Friday, Sept. 20 (anytime in the world). We do not anticipate any further deadline extensions. Please note that short (6 pages + references) papers are encouraged, to allow for resubmission of longer, improved versions to full conferenc

Re: [racket] list-box%: cannot click on first item

2013-09-13 Thread Laurent
On Fri, Sep 13, 2013 at 2:53 AM, Matthew Flatt wrote: > When I run the program, the first item is selected initially on > Unix/Gtk. Clicking the item doesn't change the selection, and so the > callback isn't triggered. > > If I add > > (send lb select 0 #f) > Oh, good, I had tried different thi

[racket] property pict-convertible in typed racket

2013-09-13 Thread Daniele Capo
Hello, in a personal project I'm working on I've some structure that has to be printed 'graphically'. I've used prop:pict-convertible to do this, now I'd like to try to rewrite the code in typed racket, but it seems that I can't use the #:property options in typed struct: The only way I've found