[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Geiser-users] Tracing function calls with guile
From: |
Ivan Sichmann Freitas |
Subject: |
Re: [Geiser-users] Tracing function calls with guile |
Date: |
Tue, 2 Jul 2013 10:49:07 -0300 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, Jul 02, 2013 at 02:40:11PM +0200, Jose A. Ortega Ruiz did gyre and
gimble:
> Not sure what you're doing wrong, but it works for me... in a Geiser
> REPL i get:
>
> scheme@(guile-user)> ,trace (fast-expt-iter 4 8 1 0)
> trace: | (#<procedure 8cc6a50> #(#<directory (guile-user) 87126c0> #f))
> trace: | #(#<directory (guile-user) 87126c0> fast-expt-iter)
> trace: (#<procedure 8ccc9d0 at <current input>:29:7 ()>)
> trace: (fast-expt-iter 4 8 1 0)
> trace: | (square 4)
> trace: | 16
> trace: (fast-expt-iter 4 8 16 2)
> trace: | (square 4)
> trace: | 16
> trace: (fast-expt-iter 4 8 256 4)
> trace: | (square 4)
> trace: | 16
> trace: (fast-expt-iter 4 8 4096 6)
> trace: | (square 4)
> trace: | 16
> trace: (fast-expt-iter 4 8 65536 8)
> trace: 65536
> scheme@(guile-user)>
>
> without modifying any option. What versions of emacs and guile are you
> using?
emacs 24.3, guile 2.0.9, geiser 0.4 (from elpa).
I'm evaluating regions from a file with many functions (C-c C-r). Even
with a clean guile instance (only with the definitions above) trace
produces no output. Loading the file directly into guile or cutting and
pasting the definitions to it works as expected. On my .emacs [1], I
have the following:
(setq geiser-repl-history-filename "~/.emacs.d/geiser-history")
(setq geiser-repl-query-on-kill-p nil)
(setq geiser-repl-query-on-exit-p t)
[1]: https://raw.github.com/ISF/dotfiles/master/.emacs
--
Ivan Sichmann Freitas
GNU/Linux user #509059
SDF MetaArpa Member http://isf.sdf.org/about.html
Phone: +55 (19) 8227 8610
pgp7ejZIdOsVG.pgp
Description: PGP signature