unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: Daniel Llorens <daniel.llorens@bluewin.ch>
Cc: guile-user@gnu.org
Subject: Re: (help) vs ,describe
Date: Tue, 22 Jan 2013 10:26:57 +0100	[thread overview]
Message-ID: <87txq9y3dq.fsf@pobox.com> (raw)
In-Reply-To: <AE3C85E7-2D7C-4030-B979-78B3BBFA1302@bluewin.ch> (Daniel Llorens's message of "Mon, 21 Jan 2013 16:03:37 +0100")

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/



  reply	other threads:[~2013-01-22  9:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-21 15:03 (help) vs ,describe Daniel Llorens
2013-01-22  9:26 ` Andy Wingo [this message]
2013-01-23 12:59   ` Daniel Llorens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87txq9y3dq.fsf@pobox.com \
    --to=wingo@pobox.com \
    --cc=daniel.llorens@bluewin.ch \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).