Re: [racket-dev] [plt] Push #23578: master branch updated

2011-09-21 Thread Sam Tobin-Hochstadt
On Tue, Sep 20, 2011 at 6:13 PM,  mfl...@racket-lang.org wrote:

 | convert C++-style comments to C-style comments
 |
 | As far as I know, // isn't a C comment form, although
 | MSVC and gcc both accept it.

// was made a legal comment syntax by C99.
-- 
sam th
sa...@ccs.neu.edu
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] [plt] Push #23580: master branch updated

2011-09-21 Thread Eli Barzilay
Reminder: checkpoint commits are perfectly fine, but please use
`rebase -i' to merge them before you push.


Yesterday, rafk...@racket-lang.org wrote:
 rafkind has updated `master' from 13e16d2b12 to 67c9e3e4af.
   http://git.racket-lang.org/plt/13e16d2b12..67c9e3e4af
 
 =[ 2 Commits ]==
 
 Directory summary:
   99.0% collects/scribblings/honu/
 
 ~~
 
 34689f1 Jon Rafkind rafk...@racket-lang.org 2011-09-20 17:37
 :
 | [honu] checkpoint for docs
 :
   M collects/honu/core/private/honu-typed-scheme.rkt |3 +-
   M collects/scribblings/honu/honu.scrbl |  347 
 ---
 
 ~~
 
 67c9e3e Jon Rafkind rafk...@racket-lang.org 2011-09-20 18:05
 :
 | [honu] more doc updates
 :
   M collects/scribblings/honu/honu.scrbl |   97 
 +++

-- 
  ((lambda (x) (x x)) (lambda (x) (x x)))  Eli Barzilay:
http://barzilay.org/   Maze is Life!
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


[racket-dev] Dotted syntax/parse patterns and scribble/eval

2011-09-21 Thread Casey Klein
I'm confused by the behavior of syntax/parse pattern variables that
come after dots. Sometimes they're bound to lists and sometimes to
syntax objects.

For example, in the following example, the variable `after-ones' gets
bound to a list:

   #lang racket/base

   (require (for-syntax racket/base))

   (begin
 (require (for-syntax syntax/parse))

 (define-syntax (m stx)
   (syntax-parse stx
 [(_ 1 ... . after-ones:expr)
  (if (list? #'after-ones)
  #''list
  #''not-list)]))

 (m 1 1 2 1 2 3)) ; 'list

but it gets bound to a syntax object if I drop the variable's `expr'
syntax-class.

That is, unless you're using scribble/eval, in which case dropping the
syntax-class does not change the behavior:

   #lang scribble/manual

   @(require scribble/eval)

   @(parameterize ([current-eval (make-base-eval)])
  (interaction-eval (require (for-syntax racket/base)))
  (interaction (begin
 (require (for-syntax syntax/parse))

 (define-syntax (m stx)
   (syntax-parse stx
 [(_ 1 ... . after-ones:expr)
  (if (list? #'after-ones)
  #''list
  #''not-list)]))

 (m 1 1 2 1 2 3

What's going on?
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] [plt] Push #23583: master branch updated

2011-09-21 Thread Jon Rafkind
How do I see the Honu docs now? I just rebuilt, searching for 'honu' doesn't 
find it.

On 09/21/2011 02:10 PM, e...@racket-lang.org wrote:
 eli has updated `master' from 5024b690ca to 81e0f3f3d7.
   http://git.racket-lang.org/plt/5024b690ca..81e0f3f3d7

 =[ 1 Commits ]==

 Directory summary:
   50.0% collects/honu/scribblings/
   49.9% collects/scribblings/honu/

 ~~

 81e0f3f Eli Barzilay e...@racket-lang.org 2011-09-21 16:10
 :
 | Move `scribblings/honu' to `honu/scribblings'.
 |
 | Also, use `user-doc' since it's not distributed, yet.
 :
   A collects/honu/scribblings/info.rkt
   R collects/{scribblings/honu = honu/scribblings}/honu.scrbl (100%)
   D collects/scribblings/honu/info.rkt

 =[ Overall Diff ]===

 collects/honu/scribblings/info.rkt
 ~~
 --- /dev/null
 +++ NEW/collects/honu/scribblings/info.rkt
 @@ -0,0 +1,3 @@
 +#lang setup/infotab
 +
 +(define scribblings '((honu.scrbl (multi-page user-doc) (experimental 
 40

 collects/scribblings/honu/info.rkt
 ~~
 --- OLD/collects/scribblings/honu/info.rkt
 +++ /dev/null
 @@ -1,3 +0,0 @@
 -#lang setup/infotab
 -
 -(define scribblings '((honu.scrbl (multi-page) (experimental 40

 *** See above for renames and copies ***

_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] Dotted syntax/parse patterns and scribble/eval

2011-09-21 Thread Ryan Culpepper

That's a bug. A pattern variable should always be bound to a syntax object.

Ryan


On 09/21/2011 03:39 PM, Casey Klein wrote:

I'm confused by the behavior of syntax/parse pattern variables that
come after dots. Sometimes they're bound to lists and sometimes to
syntax objects.

For example, in the following example, the variable `after-ones' gets
bound to a list:

#lang racket/base

(require (for-syntax racket/base))

(begin
  (require (for-syntax syntax/parse))

  (define-syntax (m stx)
(syntax-parse stx
  [(_ 1 ... . after-ones:expr)
   (if (list? #'after-ones)
   #''list
   #''not-list)]))

  (m 1 1 2 1 2 3)) ; 'list

but it gets bound to a syntax object if I drop the variable's `expr'
syntax-class.

That is, unless you're using scribble/eval, in which case dropping the
syntax-class does not change the behavior:

#lang scribble/manual

@(require scribble/eval)

@(parameterize ([current-eval (make-base-eval)])
   (interaction-eval (require (for-syntax racket/base)))
   (interaction (begin
  (require (for-syntax syntax/parse))

  (define-syntax (m stx)
(syntax-parse stx
  [(_ 1 ... . after-ones:expr)
   (if (list? #'after-ones)
   #''list
   #''not-list)]))

  (m 1 1 2 1 2 3

What's going on?
_
   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 #23583: master branch updated

2011-09-21 Thread Jon Rafkind
On 09/21/2011 05:27 PM, Eli Barzilay wrote:
 An hour and a half ago, Jon Rafkind wrote:
 How do I see the Honu docs now? I just rebuilt, searching for 'honu'
 doesn't find it.
 Run `raco docs'.


And then what? Do you see Honu in there? I don't.
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] [plt] Push #23583: master branch updated

2011-09-21 Thread Eli Barzilay
Just now, Jon Rafkind wrote:
 On 09/21/2011 05:27 PM, Eli Barzilay wrote:
  An hour and a half ago, Jon Rafkind wrote:
  How do I see the Honu docs now? I just rebuilt, searching for 'honu'
  doesn't find it.
  Run `raco docs'.
 
 And then what? Do you see Honu in there? I don't.

I don't know what went wrong, but I definitely see a honu manual
there.  Right below the algol manual.

-- 
  ((lambda (x) (x x)) (lambda (x) (x x)))  Eli Barzilay:
http://barzilay.org/   Maze is Life!
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] [plt] Push #23583: master branch updated

2011-09-21 Thread Ryan Culpepper

On 09/21/2011 05:31 PM, Eli Barzilay wrote:

Just now, Jon Rafkind wrote:

On 09/21/2011 05:27 PM, Eli Barzilay wrote:

An hour and a half ago, Jon Rafkind wrote:

How do I see the Honu docs now? I just rebuilt, searching for 'honu'
doesn't find it.

Run `raco docs'.


And then what? Do you see Honu in there? I don't.


I don't know what went wrong, but I definitely see a honu manual
there.  Right below the algol manual.


Jon: did you run raco setup as opposed to raco setup honu? The 
index, main page, etc aren't rebuilt unless you run setup on the whole tree.


Ryan
_
 For list-related administrative tasks:
 http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] [plt] Push #23583: master branch updated

2011-09-21 Thread Jon Rafkind
On 09/21/2011 05:34 PM, Ryan Culpepper wrote:
 On 09/21/2011 05:31 PM, Eli Barzilay wrote:
 Just now, Jon Rafkind wrote:
 On 09/21/2011 05:27 PM, Eli Barzilay wrote:
 An hour and a half ago, Jon Rafkind wrote:
 How do I see the Honu docs now? I just rebuilt, searching for 'honu'
 doesn't find it.
 Run `raco docs'.

 And then what? Do you see Honu in there? I don't.

 I don't know what went wrong, but I definitely see a honu manual
 there.  Right below the algol manual.

 Jon: did you run raco setup as opposed to raco setup honu? The index, 
 main page, etc aren't rebuilt unless you run setup on the whole tree.

 Ryan

I did 'make  make install' after doing a git pull, but i just tried to erase 
some stuff and am running 'raco setup' right now.
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] [plt] Push #23583: master branch updated

2011-09-21 Thread Jon Rafkind
On 09/21/2011 05:35 PM, Jon Rafkind wrote:
 On 09/21/2011 05:34 PM, Ryan Culpepper wrote:
 On 09/21/2011 05:31 PM, Eli Barzilay wrote:
 Just now, Jon Rafkind wrote:
 On 09/21/2011 05:27 PM, Eli Barzilay wrote:
 An hour and a half ago, Jon Rafkind wrote:
 How do I see the Honu docs now? I just rebuilt, searching for 'honu'
 doesn't find it.
 Run `raco docs'.
 And then what? Do you see Honu in there? I don't.
 I don't know what went wrong, but I definitely see a honu manual
 there.  Right below the algol manual.
 Jon: did you run raco setup as opposed to raco setup honu? The index, 
 main page, etc aren't rebuilt unless you run setup on the whole tree.

 Ryan
 I did 'make  make install' after doing a git pull, but i just tried to 
 erase some stuff and am running 'raco setup' right now.

Ok all set now.. not sure exactly what fixed it though.
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] Dotted syntax/parse patterns and scribble/eval

2011-09-21 Thread Ryan Culpepper

On 09/21/2011 04:14 PM, Neil Van Dyke wrote:

Ryan Culpepper wrote at 09/21/2011 05:43 PM:

That's a bug. A pattern variable should always be bound to a syntax
object.


This seems to me like a good scenario of one kind of backward
compatibility issue affecting PLaneT.

For example, I think that a fix to this bug would break a forthcoming
PLaneT package of mine, as it is now. (Of course, I can add add a
workaround now, since I know of the problem before the package went out
the door. That wouldn't work for anyone who already released packages
and doesn't know of the problem in advance.)


This particular bug only affects patterns of the form

  (stuff . var:expr)

If you've seen pattern variables get non-syntax values in some other 
way, please let me know! (BTW, by pattern variable I mean a name bound 
directly in the pattern; nested attributes like var.value are allowed 
to contain non-syntax values.)



Perhaps automated testing of PLaneT packages against prospective Racket
releases is part of the solution?


I'll have to let someone else answer that.


BTW, syntax-parse is great stuff.


Thanks!

Ryan
_
 For list-related administrative tasks:
 http://lists.racket-lang.org/listinfo/dev


[racket-dev] help on Help Desk

2011-09-21 Thread Stephen Bloch
Bug #12115 is really throwing me.  The reported symptom is picturing-programs 
documentation is not searchable in Help Desk, but that's not quite true.

I start up DrRacket in BSL and type (require picturing-programs) in 
Definitions pane, then hit Run.
If I do NOT have a browser running, and I explicitly invoke Help Desk from 
the DrRacket menu, then search for (say) map-image, it finds it, no problem.
If I then invoke Help Desk from the menu again, I get another browser tab 
that also finds map-image, no problem.
If I then search for map-image by highlighting the function name and hitting 
F1, I get another browser tab that does NOT find map-image.
What's more, the previously-opened tabs have now forgotten how to find 
map-image, which they found without difficulty a few seconds ago.
Invoking Help Desk from the menu doesn't help: if I've EVER used F1, the search 
context is irretrievably lost.
Hitting Run in DrRacket doesn't help: all the tabs have now lost the context 
that enabled them to find map-image.
Closing all the tabs in the browser doesn't help; any newly created tab is 
still missing that context.
Quitting the browser DOES help: any Help Desk tab opened thereafter has the 
right context, until I use F1, at which point they all lose it.

In short, Help Desk can find picturing-programs-specific documentation iff (I 
haven't used F1 since the last time I started the browser).
This is on a Mac with Firefox; I haven't experimented with it on Windows (where 
the bug was reported) yet, nor with different browsers.

BTW, the same thing happens if picturing-programs is loaded as a teachpack 
rather than with require.

Who's in charge of the Help Desk (and, more particularly, the F1 keyboard 
shortcut)?


Stephen Bloch
sbl...@adelphi.edu


_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] help on Help Desk

2011-09-21 Thread Robby Findler
I guess I'm in charge of the bits that call into help/search. If f1 is
near whitespace, it calls send-main-page. If there is a word/symbol
nearby it calls perform-search with that word and some context
information. It kind of sounds like the context is being synthesized
wrong. Perhaps the next step is to figure out what that context
information is when you're running and if it looks right or not.

Robby

On Wed, Sep 21, 2011 at 9:13 PM, Stephen Bloch sbl...@adelphi.edu wrote:
 Bug #12115 is really throwing me.  The reported symptom is 
 picturing-programs documentation is not searchable in Help Desk, but that's 
 not quite true.

 I start up DrRacket in BSL and type (require picturing-programs) in 
 Definitions pane, then hit Run.
 If I do NOT have a browser running, and I explicitly invoke Help Desk from 
 the DrRacket menu, then search for (say) map-image, it finds it, no problem.
 If I then invoke Help Desk from the menu again, I get another browser tab 
 that also finds map-image, no problem.
 If I then search for map-image by highlighting the function name and hitting 
 F1, I get another browser tab that does NOT find map-image.
 What's more, the previously-opened tabs have now forgotten how to find 
 map-image, which they found without difficulty a few seconds ago.
 Invoking Help Desk from the menu doesn't help: if I've EVER used F1, the 
 search context is irretrievably lost.
 Hitting Run in DrRacket doesn't help: all the tabs have now lost the 
 context that enabled them to find map-image.
 Closing all the tabs in the browser doesn't help; any newly created tab is 
 still missing that context.
 Quitting the browser DOES help: any Help Desk tab opened thereafter has the 
 right context, until I use F1, at which point they all lose it.

 In short, Help Desk can find picturing-programs-specific documentation iff (I 
 haven't used F1 since the last time I started the browser).
 This is on a Mac with Firefox; I haven't experimented with it on Windows 
 (where the bug was reported) yet, nor with different browsers.

 BTW, the same thing happens if picturing-programs is loaded as a teachpack 
 rather than with require.

 Who's in charge of the Help Desk (and, more particularly, the F1 keyboard 
 shortcut)?


 Stephen Bloch
 sbl...@adelphi.edu


 _
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev