* bug#12173: docstrings and .guile
@ 2012-08-10 19:25 Ian Price
2012-11-28 13:33 ` Ludovic Courtès
0 siblings, 1 reply; 4+ messages in thread
From: Ian Price @ 2012-08-10 19:25 UTC (permalink / raw)
To: 12173
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"
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#12173: docstrings and .guile
2012-08-10 19:25 bug#12173: docstrings and .guile Ian Price
@ 2012-11-28 13:33 ` Ludovic Courtès
2012-11-28 15:46 ` Ludovic Courtès
0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2012-11-28 13:33 UTC (permalink / raw)
To: Ian Price; +Cc: 12173
Hi!
Ian Price <ianprice90@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’.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-11-29 20:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-10 19:25 bug#12173: docstrings and .guile Ian Price
2012-11-28 13:33 ` Ludovic Courtès
2012-11-28 15:46 ` Ludovic Courtès
2012-11-29 20:19 ` Ian Price
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).