Subject: Re: bug#12173: docstrings and .guile

From: [email-masked] (Ludovic Courtès)
Date: Wed, 28 Nov 2012 14:33:01 +0100

Hi!

Ian Price <[email-masked]> skribis:

> The issue is simple to reproduce, I added
>
> (define (test)
>   "docs"
>   #f)
>
> to my .guile, and from a new guile repl
>
> scheme@(guile-user)> ,d test
> #f

The issue is that closures returned by ‘eval’ have no docstring:

--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> (procedure-documentation (eval '(lambda (a b) "doc" a)  (current-module)))
$29 = #f
--8<---------------cut here---------------end--------------->8---

Trying to fix it now.

Thanks,
Ludo’.