This is the mail archive of the guile@sourceware.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: docstrings in Guile!


ryan yeske <rcyeske@sfu.ca> writes:

> >>>>> "Greg" == Greg J Badros <gjb@cs.washington.edu> writes:
> 
>     Greg> % ./guile
>     guile> (documentation 'library-dir)
>     Greg> (library-dir) Return the directory where the Guile Scheme
>     Greg> library files are installed.  E.g., may return
>     Greg> "/usr/share/guile/1.3.5".  [load.c:207] #t
> 
> Now that I have it finally built, the above does not work for me.  In
> fact, documentation is undefined.  Did I missing something?
> procedure-documentation is there, but it returns #f on any symbol.

Doh. You need to do

(use-modules (ice-9 documentation))

somehow I skipped that line when I cut and pasted into my email
message.  Sorry about that.

> What can I look at to see where something might have gone wrong?  I
> see that guile-procedures.txt is created and full of docstrings.
> 
> btw, I had to add #include <libguile/scm_validate.h> to
> guile-readline/readline.c.

Great, thanks.

Greg

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