geiser-users
[Top][All Lists]
Advanced

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

[Geiser-users] Re: Rational number causes Geiser's Guile REPL to enter d


From: Mark Harig
Subject: [Geiser-users] Re: Rational number causes Geiser's Guile REPL to enter debugger
Date: Thu, 10 Feb 2011 13:50:20 -0500

More information for reproducing this error:

I had thought that this problem could be reproduced, but
when I restarted Emacs, rational numbers could be entered
in Geiser's Guile REPL buffer without error.

Apparently, the problem is caused by something I had
done earlier: provided an invalid procedure definition.
The following steps appear to be sufficient to reproduce
the problem:

1) Start Emacs

2) Enter the following definition into a new file, foo.scm:

     (define (define q)
         (* q q))

3) Start Geiser: geiser-mode-switch-to-repl

The following output is in the * Guile REPL * buffer:

GNU Guile 1.9.15
Copyright (C) 1995-2010 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)>

4) Switch to the buffer foo.scm and evaluate the
   invalid definition: M-x geiser-eval-last-sexp

The following output is added to the * Guile REPL * buffer:

language/scheme/compile-tree-il.scm:31:6: cannot define keyword at top level
Exception during displaying of error: misc-error

In language/scheme/compile-tree-il.scm:
    31:5  0 (#<procedure 1ed7180 at language/scheme/compile-tree-il.…>)
scheme@(guile-user) [1]>

5) Exit the debugger and exit the Guile REPL:

scheme@(guile-user) [1]> ,q
scheme@(guile-user)>
It's been nice interacting with you!
Press C-c C-z to bring me back.

6) Restart the Guile REPL: M-x geiser-mode-switch-to-repl

GNU Guile 1.9.15
Copyright (C) 1995-2010 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)>

7) Enter a rational number at the REPL prompt.  Guile will enter its
    debugger:

scheme@(guile-user)> 9/5
$3 = 9/5
scheme@(guile-user) [2]>

This does not appear to have anything to do with rational numbers,
but rather with some state information that does not get reset when
Geiser restarts Guile.

I have been able to reproduce the above results several times, restarting Emacs.

--



reply via email to

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