Hi, thanks a lot, and yes: that was it! I had just used modules - not defined a module
--8<---------------cut here---------------start------------->8--- (use-modules (sxml match) (sxml transform) (sxml simple) ... (ice-9 pretty-print) (sxml apply-templates) ;; cut (srfi srfi-26) ;; match (ice-9 match) ) --8<---------------cut here---------------end--------------->8--- And now I have both: a module definition, and usage as above And M-. works (after C-c C-k -- yes!) --8<---------------cut here---------------start------------->8--- (define-module (stuff)) (use-modules (sxml match) (sxml transform) (sxml simple) ... (ice-9 pretty-print) (sxml apply-templates) ;; cut (srfi srfi-26) ;; match (ice-9 match) ) --8<---------------cut here---------------end--------------->8--- Or more compact maybe: --8<---------------cut here---------------start------------->8--- (define-module (stuff) #:use-module (sxml match) #:use-module (sxml transform) #:use-module (sxml simple) ... ) --8<---------------cut here---------------end--------------->8--- Many thanks again! -A PS: I am list-replying - sorry if you get my message twice now! [?] Jose Antonio Ortega Ruiz <m...@jao.io> writes: > Hi Andreas, > > On Tue, Aug 16 2022, Andreas Reuleaux wrote: > > > [...] > >> I compile buffers with C-k > > I guess you mean C-c C-k here... > > > [...] > >> The problem is: this works for me only in gauche - not in geiser guile: >> >> Any time I do M-. on some symbol (function name etc.) in guile files, I only >> get to see >> >> --8<---------------cut here---------------start------------->8--- >> Symbol not found (...) >> --8<---------------cut here---------------end--------------->8--- >> >> there are a thousand things yet to learn for me about geiser, but I would >> like to have >> this basic M-. working in geiser guile first. > > That should work without problems provided you're using modules in the > usual way (it'd also work without, but there're some caveats). So, if > you have a file foo.scm looking like, say: > > (define-module (foo)) > > (define foo-val 42) > > (define (foo) foo-val) > > and put your cursor, after C-c C-k (and with a running guile REPL), on > foo-val in the last line and press M-., don't you go to foo-val in line > 3? > > That said, many of the guile built-in's are implemented in C (you'll now > because their module is just (guile)), so trying to go to their > definition won't work. Maybe that's what's happening to you? > > Cheers, > jao