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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12173 in the body.
You can then email your comments to 12173 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#12173; Package guile. (Fri, 10 Aug 2012 19:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ian Price <ianprice90 <at> googlemail.com>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Fri, 10 Aug 2012 19:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ian Price <ianprice90 <at> googlemail.com>
To: bug-guile <at> gnu.org
Subject: docstrings and .guile
Date: Fri, 10 Aug 2012 20:25:48 +0100
Hi guilers,

While debugging, I realised the root cause of my problem was that I
could not access procedure documentation for procedures defined in my
.guile

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
scheme@(guile-user)> (define (test) "docs" #f)
scheme@(guile-user)> ,d test
docs

This happens on 32bit fedora 16 on stable-2.0 git commit
1321a36ed61deb9431b41768dc92cb7230c9afa1

-- 
Ian Price -- shift-reset.com

"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"





Information forwarded to bug-guile <at> gnu.org:
bug#12173; Package guile. (Wed, 28 Nov 2012 13:35:02 GMT) Full text and rfc822 format available.

Message #8 received at 12173 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Ian Price <ianprice90 <at> googlemail.com>
Cc: 12173 <at> debbugs.gnu.org
Subject: Re: 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’.




Changed bug title to 'eval'd procedures lack docstrings' from 'docstrings and .guile' Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Wed, 28 Nov 2012 13:45:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guile <at> gnu.org:
bug#12173; Package guile. (Wed, 28 Nov 2012 15:49:02 GMT) Full text and rfc822 format available.

Message #13 received at 12173 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Ian Price <ianprice90 <at> googlemail.com>
Cc: 12173 <at> debbugs.gnu.org
Subject: Re: bug#12173: docstrings and .guile
Date: Wed, 28 Nov 2012 16:46:21 +0100
Fixed in c438cd7, please test!

Ludo’.




bug marked as fixed in version 2.0.7, send any further explanations to 12173 <at> debbugs.gnu.org and Ian Price <ianprice90 <at> googlemail.com> Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Wed, 28 Nov 2012 15:49:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guile <at> gnu.org:
bug#12173; Package guile. (Thu, 29 Nov 2012 20:22:01 GMT) Full text and rfc822 format available.

Message #18 received at 12173 <at> debbugs.gnu.org (full text, mbox):

From: Ian Price <ianprice90 <at> googlemail.com>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: 12173 <at> debbugs.gnu.org
Subject: Re: bug#12173: docstrings and .guile
Date: Thu, 29 Nov 2012 20:19:11 +0000
ludo <at> gnu.org (Ludovic Courtès) writes:

> Fixed in c438cd7, please test!

Thanks, works fine for me.

-- 
Ian Price -- shift-reset.com

"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 28 Dec 2012 12:24:03 GMT) Full text and rfc822 format available.

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.