GNU bug report logs - #12173
eval'd procedures lack docstrings

Previous Next

Package: guile;

Reported by: Ian Price <ianprice90 <at> googlemail.com>

Date: Fri, 10 Aug 2012 19:35:02 UTC

Severity: normal

Fixed in version 2.0.7

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: ludo <at> gnu.org (Ludovic Courtès)
To: Ian Price <ianprice90 <at> googlemail.com>
Cc: 12173 <at> debbugs.gnu.org
Subject: bug#12173: docstrings and .guile
Date: Wed, 28 Nov 2012 14:33:01 +0100
Hi!

Ian Price <ianprice90 <at> googlemail.com> 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’.




This bug report was last modified 12 years and 176 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.