Re: [racket-dev] comment boxes
Yes, and it works well. That's what I see as the major feature of the comment box over the comment block. That and the colorizing. While commented out, it still looks like code. I was afraid you were going to remove some of that functionality by not Scheme mode-ing them or something. -Paul I think you're saying that you want to re-indent code inside a comment box, right? If so, did you try selecting the code and hitting tab? Robby If it weren't for the function templates we wouldn't miss the comment boxes being able to be seen as code by DrRacket. -Paul -Original Message- From: dev-boun...@racket-lang.org [mailto:dev-boun...@racket-lang.org] On Behalf Of Robby Findler Sent: Friday, June 25, 2010 6:58 PM To: dev Subject: [racket-dev] comment boxes Currently, comment boxes use Scheme mode inside them. This was just reported as a bug to me. Anyone actually use this behavior and would like to preserve it? (Should we have two kinds of comment boxes maybe? Any opinions on how to put them into the GUI?) Robby _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] [plt] Push #20578: master branch updated
Just using the core of even-read didn't work. It would start to read after parse-statement had returned and then my parser would just sit there because the port wasn't returning EOF. I think it is a bug. Jay On Fri, Jun 25, 2010 at 10:44 PM, Eli Barzilay e...@barzilay.org wrote: On Jun 26, j...@racket-lang.org wrote: + ; XXX This is almost certainly wrong. + (define (even-read src ip) + (begin0 + (parameterize ([current-source-name src]) + (datum-syntax #f (parse-statement ip))) + (current-read-interaction odd-read))) + (define (odd-read src ip) + (current-read-interaction even-read) + eof) + + (current-read-interaction + even-read)) This is not just wrong -- it is likely to break things randomly. Something like -- if you happen to invoke the datalog reader indirectly (like just `read' a file in the language), you'd end up with one of these readers as a side-effect. This is exactly how the scribble/text language messed things up in a very confusing way: by banging `current-print' to do its own thing. -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! -- Jay McCarthy j...@cs.byu.edu Assistant Professor / Brigham Young University http://teammccarthy.org/jay The glory of God is Intelligence - DC 93 _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] [plt] Push #20578: master branch updated
It should be set by the 'configure-runtime thunk (from module-language-info), right? (I'm not sure about the bug, tho.) Robby On Sat, Jun 26, 2010 at 8:47 AM, Jay McCarthy jay.mccar...@gmail.com wrote: Just using the core of even-read didn't work. It would start to read after parse-statement had returned and then my parser would just sit there because the port wasn't returning EOF. I think it is a bug. Jay On Fri, Jun 25, 2010 at 10:44 PM, Eli Barzilay e...@barzilay.org wrote: On Jun 26, j...@racket-lang.org wrote: + ; XXX This is almost certainly wrong. + (define (even-read src ip) + (begin0 + (parameterize ([current-source-name src]) + (datum-syntax #f (parse-statement ip))) + (current-read-interaction odd-read))) + (define (odd-read src ip) + (current-read-interaction even-read) + eof) + + (current-read-interaction + even-read)) This is not just wrong -- it is likely to break things randomly. Something like -- if you happen to invoke the datalog reader indirectly (like just `read' a file in the language), you'd end up with one of these readers as a side-effect. This is exactly how the scribble/text language messed things up in a very confusing way: by banging `current-print' to do its own thing. -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! -- Jay McCarthy j...@cs.byu.edu Assistant Professor / Brigham Young University http://teammccarthy.org/jay The glory of God is Intelligence - DC 93 _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] [plt] Push #20578: master branch updated
You are right. I used it and it works. Nice! Jay On Sat, Jun 26, 2010 at 4:58 PM, Robby Findler ro...@eecs.northwestern.edu wrote: It should be set by the 'configure-runtime thunk (from module-language-info), right? (I'm not sure about the bug, tho.) Robby On Sat, Jun 26, 2010 at 8:47 AM, Jay McCarthy jay.mccar...@gmail.com wrote: Just using the core of even-read didn't work. It would start to read after parse-statement had returned and then my parser would just sit there because the port wasn't returning EOF. I think it is a bug. Jay On Fri, Jun 25, 2010 at 10:44 PM, Eli Barzilay e...@barzilay.org wrote: On Jun 26, j...@racket-lang.org wrote: + ; XXX This is almost certainly wrong. + (define (even-read src ip) + (begin0 + (parameterize ([current-source-name src]) + (datum-syntax #f (parse-statement ip))) + (current-read-interaction odd-read))) + (define (odd-read src ip) + (current-read-interaction even-read) + eof) + + (current-read-interaction + even-read)) This is not just wrong -- it is likely to break things randomly. Something like -- if you happen to invoke the datalog reader indirectly (like just `read' a file in the language), you'd end up with one of these readers as a side-effect. This is exactly how the scribble/text language messed things up in a very confusing way: by banging `current-print' to do its own thing. -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! -- Jay McCarthy j...@cs.byu.edu Assistant Professor / Brigham Young University http://teammccarthy.org/jay The glory of God is Intelligence - DC 93 _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev -- Jay McCarthy j...@cs.byu.edu Assistant Professor / Brigham Young University http://teammccarthy.org/jay The glory of God is Intelligence - DC 93 _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev