diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-06-19 16:52:03 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-06-19 16:52:03 +0200 |
commit | 841766449b9dc14d40186a67cdceda26fc6ca4ff (patch) | |
tree | 075fcb90e84eafb0946e5804a5b6b7c38a07194c /scheme/guile/geiser/xref.scm | |
parent | d2e8efd5b449bddaad5b416cb3634532a235576d (diff) | |
download | geiser-guile-841766449b9dc14d40186a67cdceda26fc6ca4ff.tar.gz geiser-guile-841766449b9dc14d40186a67cdceda26fc6ca4ff.tar.bz2 |
Guile: backtrace buttonization.
Diffstat (limited to 'scheme/guile/geiser/xref.scm')
-rw-r--r-- | scheme/guile/geiser/xref.scm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scheme/guile/geiser/xref.scm b/scheme/guile/geiser/xref.scm index f00f724..2336fb2 100644 --- a/scheme/guile/geiser/xref.scm +++ b/scheme/guile/geiser/xref.scm @@ -28,7 +28,8 @@ #:export (symbol-location generic-methods callers - callees) + callees + find-file) #:use-module (geiser utils) #:use-module (geiser modules) #:use-module (geiser doc) @@ -90,4 +91,10 @@ (and obj (map procedure-xref (procedure-callees obj))))) +(define (find-file path) + (let loop ((dirs %load-path)) + (if (null? dirs) #f + (let ((candidate (string-append (car dirs) "/" path))) + (if (file-exists? candidate) candidate (loop (cdr dirs))))))) + ;;; xref.scm ends here |