summaryrefslogtreecommitdiff
path: root/geiser/xref.scm
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-03-06 00:47:05 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-03-06 00:47:05 +0100
commit7b77380c3fe79764648c47268dd3dcca5d48b32b (patch)
treec3c3c3664146aef055a082d3ff9c8e1b7157b99f /geiser/xref.scm
parenta96b437ed38a25e09543cdaf761d9574776754bc (diff)
downloadgeiser-guile-7b77380c3fe79764648c47268dd3dcca5d48b32b.tar.gz
geiser-guile-7b77380c3fe79764648c47268dd3dcca5d48b32b.tar.bz2
New command to display generic methods (C-cC-dg) implemented.
Diffstat (limited to 'geiser/xref.scm')
-rw-r--r--geiser/xref.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/geiser/xref.scm b/geiser/xref.scm
index 232d692..c94835a 100644
--- a/geiser/xref.scm
+++ b/geiser/xref.scm
@@ -51,7 +51,8 @@
'())))
(define (program-location p)
- (cond ((program-source p 0) =>
+ (cond ((not (program? p)) '())
+ ((program-source p 0) =>
(lambda (s) (make-location (program-path p) (source:line s))))
((program-path p) =>
(lambda (s) (make-location (program-path p) #f)))