Re: (define-module (foo) #:import (...)), a la r6rs

2011-07-28 Thread Jose A. Ortega Ruiz
On Thu, Jul 28 2011, Andy Wingo wrote: > Hi, > > I was hacking on Dorodango today, in a script that happened to have a > Guile-style (define-module ...) block, and I was importing pieces of an > rnrs library. Then I needed to update the import set to provide what > was needed. In the middle of m

Re: proposal: enhance and rename guile-tools

2011-03-21 Thread Jose A. Ortega Ruiz
On Mon, Mar 21 2011, Ludovic Courtès wrote: > Hey! > > Andy Wingo writes: > >> it has a pleasant subject-verb-object when you say it: "Guido, compile >> my-file.scm." > > Is the pun[*] intended? :-) A more or less obvious pun (but not as smooth grammatically) would be beguile(d)... "beguiled in

Re: summer of code ideas

2011-03-07 Thread Jose A. Ortega Ruiz
On Mon, Mar 07 2011, Mike Gran wrote: [...] > A similar idea. > > Define a syntax for use-modules to pull modules off the net, something > like > >    (use-modules (url://a-url.com library module #:optional a-rev-number)) > FWIW, i think this is a bad idea. It intermingles two concerns that ar

Re: problem with trailing comment in repl

2011-02-12 Thread Jose A. Ortega Ruiz
On Sat, Feb 12 2011, Andy Wingo wrote: > On Fri 11 Feb 2011 22:15, "Jose A. Ortega Ruiz" writes: > >> scheme@(guile-user)> (define a 3) ;; foo >> <- cursor stays here; no prompt >> >> is that intended? i'm hoping it is not, because it

problem with trailing comment in repl

2011-02-11 Thread Jose A. Ortega Ruiz
hi, currently, when entering a sexp in the repl with a trailing comment, there's no prompt in response (although the sexp is evaluated): [/home/jao]$ guile -q GNU Guile 1.9.15.16-9970c Copyright (C) 1995-2010 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY

[ANN] Geiser 0.1.1 released

2011-01-24 Thread Jose A. Ortega Ruiz
I'm happy to announce a new release of Geiser, the extended Emacs/Scheme interaction thingie for Guile and Racket. Version 0.1.1 is mainly a bug fix release (autodoc improvements, no more *spurious* buffer pop-ups and doc improvements), with a couple of new featurettes. See geiser's homepage (ht

problem with 'compile-file'

2011-01-09 Thread Jose A. Ortega Ruiz
hi, in a recent guile, compile-file fails to enter the debugger on (some) errors. e.g., scheme@(geiser evaluation)> (compile-file "/home/jao/tmp/dlist.scm") ice-9/boot-9.scm:119:21: In procedure define-module: ice-9/boot-9.scm:119:21: unknown keyword or bad argument Entering a new promp

Re: Guile-SCSH

2010-11-28 Thread Jose A. Ortega Ruiz
On Mon, Nov 29 2010, Stefan Israelsson Tampe wrote: [...] >> I noticed that Gary Houston’s Guile-SCSH page at >> vanished, but you might want to get in touch >> with him... > > I will try. I wrote him back in the day and he sent me a tar with guile-scsh source code. L

Re: [PATCH] Allow user-defined meta-commands

2010-10-31 Thread Jose A. Ortega Ruiz
On Mon, Nov 01 2010, Andreas Rottmann wrote: > Besides allowing user-defined meta-commands, this change also refactors > the meta-command machinery to split reading a command's arguments from > the procedure actually implementing it, and hence allows nesting > meta-commands. As an example of such

Re: repl debugger impressions

2010-10-17 Thread Jose A. Ortega Ruiz
On Sun, Oct 17 2010, Ludovic Courtès wrote: [...] >> And, if that filename:line:column were delimited by something >> unique, for example curly braces, it would then be easy enough >> to write an Emacs minor mode to pick up that filename:line:column >> from the Geiser or Shell window and automat

Re: Can `make tags' generate tags for Scheme source, as well as C?

2010-10-12 Thread Jose A. Ortega Ruiz
On Tue, Oct 12 2010, Andy Wingo wrote: > On Tue 12 Oct 2010 14:12, "Jose A. Ortega Ruiz" writes: > >> "No Geiser REPL for this buffer (try M-x run-geiser)" > > Yes, I get this at times. But why tell me what to do? Why not do it for > me, with my permis

Re: Can `make tags' generate tags for Scheme source, as well as C?

2010-10-12 Thread Jose A. Ortega Ruiz
On Tue, Oct 12 2010, Andy Wingo wrote: [...] >> Expecting anything to work in Geiser before starting (or connecting to) >> a REPL is a bad expectation, yes :) > > Could it ask to start a new Guile or connect to a Guile? Every time you try a geiser command without an active REPL, there's an error

Re: Can `make tags' generate tags for Scheme source, as well as C?

2010-10-11 Thread Jose A. Ortega Ruiz
On Tue, Oct 12 2010, Andy Wingo wrote: [...] >> I'm sorry, I think I was being a bit stupid - expecting that it would >> work even before starting a REPL. > > Is this a bad expectation? It is the first impression. Expecting anything to work in Geiser before starting (or connecting to) a REPL is

Re: Can `make tags' generate tags for Scheme source, as well as C?

2010-10-04 Thread Jose A. Ortega Ruiz
On Tue, Oct 05 2010, Neil Jerram wrote: > l...@gnu.org (Ludovic Courtès) writes: > >> BTW, ‘M-.’ in Geiser works really great, if you haven’t tried yet. And >> it works across all the modules currently loaded, not just those of the >> current project. > > I think I must be missing something: for

Re: FFI supports callbacks

2010-09-06 Thread Jose A. Ortega Ruiz
On Mon, Sep 06 2010, Andy Wingo wrote: [...] > Also consider that this is a low-level interface; presumably people > should be programming with some sort of `define-c-wrapper' macro that > presents a nicer interface. Is anyone working on this? I happen to quite like the design presented in the

Re: FFI supports callbacks

2010-09-05 Thread Jose A. Ortega Ruiz
On Sun, Sep 05 2010, Ludovic Courtès wrote: > Hi there! > > l...@gnu.org (Ludovic Courtès) writes: > >> BTW, while we’re at it, how about make-foreign-function => >> pointer->procedure? > > We briefly discussed this on IRC. One issue with the > ‘pointer->procedure’ name is that ‘->’ procedures a

program-module returns a non-module

2010-09-04 Thread Jose A. Ortega Ruiz
Hi, When called on a program (procedure object) implemented in C, program-module returns something that is not a module: (define cp (module-ref (current-module) 'cons)) (program? cp) => #t (program-module cp) => # (module? (program-module cp)) => #f Since `cp' above is a program, i was

Re: [PATCH] Fix for `submodules' in (ice-9 session) (closes #30062)

2010-09-03 Thread Jose A. Ortega Ruiz
On Fri, Sep 03 2010, Andy Wingo wrote: > On Wed 01 Sep 2010 15:23, l...@gnu.org (Ludovic Courtès) writes: > >> So, unless I’m missing an elegant design trick to avoid this, I think >> you’re bound to use heuristics to filter them out (e.g., get rid of >> modules whose name contains white spaces.)

Re: [PATCH] Fix for `submodules' in (ice-9 session) (closes #30062)

2010-09-02 Thread Jose A. Ortega Ruiz
Heya again, On Wed, Sep 01 2010, Jose A. Ortega Ruiz wrote: > On Tue, Aug 31 2010, Andy Wingo wrote: > >> Hi, >> >> Can you submit a test please, also? This patch is correct, but with >> --enable-deprecated builds, it should be unnecessary. > > Okay,

Re: [PATCH] Fix for `submodules' in (ice-9 session) (closes #30062)

2010-09-01 Thread Jose A. Ortega Ruiz
Hi Ludo, On Thu, Sep 02 2010, Ludovic Courtès wrote: > Hello! > [...] >>> psyntax expects modules to have a name so that it can refer to them in >>> expanded code. Thus, there can be no anonymous modules: modules are >>> always given a name, see ‘module-name’. This allows things like the >>>

Re: [PATCH] Fix for `submodules' in (ice-9 session) (closes #30062)

2010-09-01 Thread Jose A. Ortega Ruiz
On Wed, Sep 01 2010, Ludovic Courtès wrote: > Hi! > > "Jose A. Ortega Ruiz" writes: > >> (I'm still curious about the meaning of the >> modules with gensyms as names, though.) > > psyntax expects modules to have a name so that it can refer to th

Re: [PATCH] Fix for `submodules' in (ice-9 session) (closes #30062)

2010-08-31 Thread Jose A. Ortega Ruiz
atch attached. Cheers, jao >From b29148d72882e5840fbe9242ccbd17be14f42545 Mon Sep 17 00:00:00 2001 From: Jose A. Ortega Ruiz Date: Tue, 31 Aug 2010 14:13:43 +0200 Subject: [PATCH] Fix for `submodules' in (ice-9 session) (closes #30062) * module/ice-9/session.scm (submodules): replace i

Re: [PATCH] Fix for `submodules' in (ice-9 session) (closes #30062)

2010-08-31 Thread Jose A. Ortega Ruiz
Hi again, On Tue, Aug 31 2010, Jose A. Ortega Ruiz wrote: > On Tue, Aug 31 2010, Andy Wingo wrote: > >> Hi, >> >> Can you submit a test please, also? > > I'm not quite sure what you want the test to be: the procedure > `submodules' is not exporte

Re: [PATCH] Fix for `submodules' in (ice-9 session) (closes #30062)

2010-08-31 Thread Jose A. Ortega Ruiz
On Tue, Aug 31 2010, Andy Wingo wrote: > Hi, > > Can you submit a test please, also? I'm not quite sure what you want the test to be: the procedure `submodules' is not exported by `(ice-9 session)', and there's no test suite for the latter, so testing this change properly would mean creating such

[PATCH] Fix for `submodules' in (ice-9 session) (closes #30062)

2010-08-31 Thread Jose A. Ortega Ruiz
* module/ice-9/session.scm (submodules): replace implementation to use `module-submodules' instead of `module-obarray' (the latter doesn't include submodules anymore). Signed-off-by: Jose A. Ortega Ruiz --- module/ice-9/session.scm | 11 ++- 1 files changed, 2 i

Re: [PATCH] Add new debug meta-command ,error

2010-08-31 Thread Jose A. Ortega Ruiz
On Tue, Aug 31 2010, Andy Wingo wrote: > Hi, > > On Mon 30 Aug 2010 19:30, "Jose A. Ortega Ruiz" writes: > >> Should i commit to master? > > Yes please, modulo one fix: > >> +...@deffn {REPL Command} error-message [error] >> +Show error message.

Re: [PATCH] Add new debug meta-command ,error

2010-08-30 Thread Jose A. Ortega Ruiz
17 00:00:00 2001 From: Jose A. Ortega Ruiz Date: Mon, 30 Aug 2010 06:37:24 +0200 Subject: [PATCH] Add new debug meta-command ,error-message * module/system/repl/error-handling.scm: use the error string to construct the instance. * module/system/repl/command.scm: new debug command `error-messag

Re: [PATCH] Add new debug meta-command ,error

2010-08-30 Thread Jose A. Ortega Ruiz
On Mon, Aug 30 2010, Andy Wingo wrote: > On Mon 30 Aug 2010 12:39, "Jose A. Ortega Ruiz" writes: > >> changed the name of the command from `error' to `message' > >> I'm not specially happy with the new name, but couldn't think of >> a

Re: [PATCH] Add new debug meta-command ,error

2010-08-30 Thread Jose A. Ortega Ruiz
On Mon, Aug 30 2010, Andy Wingo wrote: > Hi, > > Thanks for the patch. Only one small comment; feel free to commit when > you're happy with it (I think you have access). > > On Sun 29 Aug 2010 21:52, "Jose A. Ortega Ruiz" writes: > >> +(define-meta-com

[PATCH] Add new debug meta-command ,error

2010-08-29 Thread Jose A. Ortega Ruiz
* module/system/repl/debug.scm: stores the error string in a new field. * module/system/repl/error-handling.scm: use the error string to construct the instance. * module/system/repl/command.scm: new debug command `error' that extracts the new field. Signed-off-by: Jose A. Ortega

Re: emacs, guile, and the manual

2010-07-29 Thread Jose A. Ortega Ruiz
On Wed, Jul 28 2010, Neil Jerram wrote: [...] > Jao said he wanted to work on some manual doc for Geiser - I wonder how > that is going? It's still work in progress. Most of what i have so far (a bit more than half the tutorial) is online at . > >> I would be OK wi

Re: request for hack: readline fixes

2010-06-02 Thread Jose A. Ortega Ruiz
On Tue, Jun 01 2010, Andy Wingo wrote: > Hello list, > > It would be really great if someone could get to the bottom of our > readline support and fix a couple things. > > * Tab-completion: Works great for functions, not so much for arguments? > >If at the repl you type `(string-' and press t

Re: file names embedded in .go

2010-04-20 Thread Jose A. Ortega Ruiz
Thien-Thi Nguyen writes: > () "Jose A. Ortega Ruiz" > () Tue, 20 Apr 2010 02:08:32 +0200 > >I'm not sure if i'm understanding you correctly, but if, by >source, you mean the scheme source, that'd be terrible news for >tools such as Geiser

Re: file names embedded in .go

2010-04-19 Thread Jose A. Ortega Ruiz
Thien-Thi Nguyen writes: > () Andy Wingo > () Mon, 19 Apr 2010 16:52:09 +0200 > >Thoughts? > > It sounds complicated. > > Does the .go format support the usual ELF-y sections, like > .rodata, .data, etc? Maybe we could just include the source > verbatim in such a section (and avoid mapping

broken VPATH build

2010-02-28 Thread Jose A. Ortega Ruiz
When building guile form git's HEAD off-tree, i get this error during make: ../../src/libguile/control.c:279:21: error: control.x: No such file or directory Thanks, jao

problem with new debugger

2010-01-27 Thread Jose A. Ortega Ruiz
Hi, in an Emacs comint buffer, (with-output-to-string (lambda () (display "foo"))) works as expected. But (with-output-to-string (lambda () (error "foo"))) blocks the prompt until C-d is sent (via C-c C-d) to the terminal, at which point the debugger prompt (sans the explanatory prelude) po

non-deterministic test failure

2010-01-03 Thread Jose A. Ortega Ruiz
hi, during the last month or so, the threads test in 1.9.x has been failing for me (debian unstable, x86 box) intermittently, with the message: FAIL: threads.test: lock-mutex: timed locking succeeds if mutex unlocked within timeout it happens every now and then, but i haven't been able to pin d

a couple bugs related to error reporting and backtraces

2009-06-15 Thread Jose A. Ortega Ruiz
Hi, I've got this trivial module definition in file a.scm: (define-module (a) #:export (ap)) (define (ap) (not-bound)) (ap) intended to cause an error upon calling `ap'. First bug is when trying to `load-compiled' a non-go file: scheme@(guile-user)> (load-compiled "./a.scm") B

Re: Publishing the manual...

2009-06-01 Thread Jose A. Ortega Ruiz
Hi Neal. This sounds neat. I was thinking that, by the time the manual hits the bookshelves, Geiser will probably have matured to the point of having documentation: if you and/or the editors think it'd be worth it, count on me to contribute (or help with) a short chapter on Geiser (i'll understand