summaryrefslogtreecommitdiff
path: root/geiser/doc.scm
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-03-06 01:27:39 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-03-06 01:27:39 +0100
commitc3d36f3c21801f8ed8bc91e98cbe5c7a728cd8ab (patch)
treef15b48dd9b5f6f96b05a2fcede666402ca61b007 /geiser/doc.scm
parentea52102ada24aece8efec96fbd37ce302805cdaf (diff)
downloadgeiser-guile-c3d36f3c21801f8ed8bc91e98cbe5c7a728cd8ab.tar.gz
geiser-guile-c3d36f3c21801f8ed8bc91e98cbe5c7a728cd8ab.tar.bz2
Don't display autodoc for function being defined.
Diffstat (limited to 'geiser/doc.scm')
-rw-r--r--geiser/doc.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/geiser/doc.scm b/geiser/doc.scm
index 578e6a3..ae24a87 100644
--- a/geiser/doc.scm
+++ b/geiser/doc.scm
@@ -41,6 +41,15 @@
(cond ((null? form) #f)
((symbol? form) (describe-application (list form)))
((and (pair? form) (not (list? form))) (autodoc (pair->list form)))
+ ((and (list? form)
+ (= 2 (length form))
+ (memq (car form)
+ '(define define* define-macro define-macro* define-method)))
+ (autodoc (cons (car form)
+ (cond ((or (symbol? (cadr form))
+ (null? (cadr form))
+ (not (list? (cadr form)))) '())
+ (else (cdadr form))))))
((list? form)
(let ((lst (last form)))
(cond ((symbol? lst) (or (describe-application (list lst))