summaryrefslogtreecommitdiff
path: root/geiser/introspection.scm
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-16 22:21:28 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-16 22:21:28 +0100
commita64467da658c51b7a282a21b61e6f6fc19f592c4 (patch)
tree3d4c35c433a7a8b6b2ba23749afb6539ccec70cd /geiser/introspection.scm
parent3432ccf319a3851b92f96d7ec00f462350db4d36 (diff)
downloadgeiser-guile-a64467da658c51b7a282a21b61e6f6fc19f592c4.tar.gz
geiser-guile-a64467da658c51b7a282a21b61e6f6fc19f592c4.tar.bz2
New command to open module file.
Diffstat (limited to 'geiser/introspection.scm')
-rw-r--r--geiser/introspection.scm11
1 files changed, 6 insertions, 5 deletions
diff --git a/geiser/introspection.scm b/geiser/introspection.scm
index 110ab01..2021a32 100644
--- a/geiser/introspection.scm
+++ b/geiser/introspection.scm
@@ -30,7 +30,8 @@
symbol-location
docstring
all-modules
- module-children)
+ module-children
+ module-location)
#:use-module (system vm program)
#:use-module (ice-9 session)
#:use-module (ice-9 documentation)
@@ -114,8 +115,11 @@
(apropos-internal (string-append "^" prefix)))
string<?))
+(define (module-location name)
+ (make-location (module-filename name) #f))
+
(define (symbol-location sym)
- (cond ((symbol-module sym) => make-location-from-module-name)
+ (cond ((symbol-module sym) => module-location)
(else '())))
(define (make-location file line)
@@ -124,9 +128,6 @@
(define module-filename (@@ (ice-9 session) module-filename))
-(define (make-location-from-module-name name)
- (make-location (module-filename name) #f))
-
(define (display-docstring sym)
(let ((obj (symbol->obj sym)))
(if obj