[plt-dev] scribble with gui

From: Chongkai Zhu (czhu at cs.utah.edu)
Date: Thu Jun 18 23:23:37 EDT 2009

Hi all,

I am writing a scribble document and part of the source code is:

@(define my-eval
    (lambda ()
      (parameterize ((sandbox-output 'string)
                     (sandbox-error-output 'string))
        (make-evaluator 'scheme/base #:requires
                        (list (if gui?

@examples[#:eval my-eval
          #|code that relies on scheme/gui/base|#]

@(kill-evaluator my-eval)

I put the scrbl file into a .plt file, and then install it inside 
DrScheme (which I assume will make gui available).
But the generated doc suggests otherwise:

The "@(define" part leaves nothing in the html file, which is right.

The "@examples" part generates, after the input:

  reference to an identifier before its definition:

  image in module: 'program

in red, which I assume is caused because 'scheme/gui/base is not 
required. Is this a bug, or did I do something wrong?

More weirdly, after that the html file contains a line:


It seems to be the result of "@(kill-evaluator", but shouldn't that not 
be printed?


Posted on the dev mailing list.