This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: usable guile version.


Corey Sweeney <corey@interaccess.com> writes:

> now is the README up to date?  cause i tried:
> 
> 
> $ guile-tcltk
> guile> (use-modules (tcltk tcltk))
> guile> (tk-main-window)
> ERROR: In expression (tk-main-window):
> ERROR: Unbound variable: tk-main-window
> ABORT: (misc-error)
> 
> Type "(backtrace)" to get more information.
> guile>

Did you see the following in the README:

  NOTE: The following instructions assumes that you have configured your
  guile library with the --with-threads option.  (If you are unsure
  about whether this is the case on your system you can check that the
  symbol `threads' is present in the scheme variable `*features*'.)
  
  See below for instructions on how to use `guile-tcltk' without
  threads.

and later:

  Using guile-tcltk without threads ====================================
  
  The procedures `tk-spawn-handler' and `tk-main-window' are unavailable
  if libguile on your system is compiled without threads.  You will then
  have to use `tk-main-loop' or `tcl-do-one-event' directly in order to
  handle Tk events.
  
  Since the demos use these procedures, they won't run without a
  threaded guile, at least not without some modification.

> actually, i've been wondering if there is a command to list out all
> defined symbols in guile.  any chance?

There is a command `apropos' in the (ice-9 session) module (available
automatically at start of Guile).  It takes a regular expression and
displays those matching symbols accessible in the current module.

Try

  (apropos ".*")

which matches anything.

/mdj