guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (help) vs ,describe


From: Andy Wingo
Subject: Re: (help) vs ,describe
Date: Tue, 22 Jan 2013 10:26:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

On Mon 21 Jan 2013 16:03, Daniel Llorens <address@hidden> writes:

> (help) doesn't seem to work for procedures defined in the REPL.
>
> scheme@(guile-user)> (define (hello x) "hello for x" x)
>
> scheme@(guile-user)> (procedure-properties hello)
> $1 = ((arity 1 0 #f) (name . hello) (documentation . "hello for x"))
>
> scheme@(guile-user)> ,describe hello
> hello for x
>
> scheme@(guile-user)> (help hello)
> Did not find any object named `hello'
>

    scheme@(guile-user)> (export hello)
    scheme@(guile-user)> (help hello)
    `hello' is a procedure in the (guile-user) module.

    hello for x

The reason is the use of apropos-fold-exported in (ice-9 session)'s
`help-doc'.

Want to propose a patch that makes more sense, including private
bindings from the current module?

Andy
-- 
http://wingolog.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]