unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Sun Yijiang <sunyijiang@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: "guile-user@gnu.org" <guile-user@gnu.org>
Subject: Re: Help needed on strange random error (Guile 2.0.9)
Date: Fri, 13 Dec 2013 13:52:05 +0800	[thread overview]
Message-ID: <CAL109eM38Va8gE4cS6U46416-8nfgs2dFQgYW29oxoOJkubfig@mail.gmail.com> (raw)
In-Reply-To: <87lhztw0t9.fsf@gnu.org>

It prints #<directory (guile-user) ........>

However, I cannot reproduce this problem any more.


Steve

2013/12/10 Ludovic Courtès <ludo@gnu.org>:
> Sun Yijiang <sunyijiang@gmail.com> skribis:
>
>> static void _main(void *data, int argc, char* argv[]) {
>>     // smob definitions
>>     DEFINE_SMOB(....)
>>     ...
>>
>>     scm_c_define_module("builtin", init_builtins, NULL);
>>     scm_c_eval_string(
>>         "(current-warning-port (%make-void-port \"w\"))"
>>         "(read-set! keywords 'prefix)"
>>         "(add-to-load-path \"/my/scm/path\")"
>>         "(use-modules (builtin) (ice-9 readline)) (activate-readline)"
>>         );
>>     scm_shell(argc, argv);
>> }
>
> Could you add this line right after the ‘scm_c_define_module’ line:
>
>   scm_write (scm_current_module (), scm_current_error_port ());
>
> What does it print?
>
> Ludo’.



      reply	other threads:[~2013-12-13  5:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-06 12:04 Help needed on strange random error (Guile 2.0.9) Sun Yijiang
2013-12-06 22:16 ` Ludovic Courtès
2013-12-07  3:52   ` Sun Yijiang
2013-12-07 11:07     ` Ludovic Courtès
2013-12-10  7:04       ` Sun Yijiang
2013-12-10  8:46         ` Ludovic Courtès
2013-12-13  5:52           ` Sun Yijiang [this message]

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=CAL109eM38Va8gE4cS6U46416-8nfgs2dFQgYW29oxoOJkubfig@mail.gmail.com \
    --to=sunyijiang@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=ludo@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).