summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-07-24 01:12:26 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-07-24 01:12:26 +0200
commitd2cb7333992ba6c523814f1de8e714e345a50475 (patch)
tree4a65db6ac07647150dfb461c9d3106645559fcd4 /elisp
parent6d5280bde548ea2df907b716ac51bb2de5a602f7 (diff)
downloadgeiser-chez-d2cb7333992ba6c523814f1de8e714e345a50475.tar.gz
geiser-chez-d2cb7333992ba6c523814f1de8e714e345a50475.tar.bz2
Racket: showing contracts in module documentation.
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-doc.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/elisp/geiser-doc.el b/elisp/geiser-doc.el
index b8701b4..04bea85 100644
--- a/elisp/geiser-doc.el
+++ b/elisp/geiser-doc.el
@@ -199,11 +199,14 @@
(geiser-doc--insert-title title)
(newline)
(dolist (w lst)
- (insert (format "\t- "))
- (if module
- (geiser-doc--insert-button w module impl)
- (geiser-doc--insert-button nil w impl))
- (newline))
+ (let ((name (if (listp w) (car w) w))
+ (info (and (listp w) (cdr w))))
+ (insert (format "\t- "))
+ (if module
+ (geiser-doc--insert-button name module impl)
+ (geiser-doc--insert-button nil name impl))
+ (when info (insert (format " %s" info)))
+ (newline)))
(newline)))