unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* (help) vs ,describe
@ 2013-01-21 15:03 Daniel Llorens
  2013-01-22  9:26 ` Andy Wingo
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Llorens @ 2013-01-21 15:03 UTC (permalink / raw)
  To: guile-user


(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'

It doesn't work either if I use scm_set_procedure_property_x() from C (,describe does work).

Why is this?

Thanks,

	Daniel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: (help) vs ,describe
  2013-01-21 15:03 (help) vs ,describe Daniel Llorens
@ 2013-01-22  9:26 ` Andy Wingo
  2013-01-23 12:59   ` Daniel Llorens
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Wingo @ 2013-01-22  9:26 UTC (permalink / raw)
  To: Daniel Llorens; +Cc: guile-user

On Mon 21 Jan 2013 16:03, Daniel Llorens <daniel.llorens@bluewin.ch> 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/



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: (help) vs ,describe
  2013-01-22  9:26 ` Andy Wingo
@ 2013-01-23 12:59   ` Daniel Llorens
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Llorens @ 2013-01-23 12:59 UTC (permalink / raw)
  To: Andy Wingo; +Cc: guile-user


On Jan 22, 2013, at 10:26, Andy Wingo wrote:

> 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?

Thanks for the pointer, I'll look into it.

Regards,

	Daniel




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-23 12:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-21 15:03 (help) vs ,describe Daniel Llorens
2013-01-22  9:26 ` Andy Wingo
2013-01-23 12:59   ` Daniel Llorens

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).