summaryrefslogtreecommitdiff
path: root/elisp/geiser-doc.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-28 04:35:45 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-28 04:35:45 +0100
commit9186ce41aabe30f6242fcfc32d80c21e4f63d4d5 (patch)
treee0471ca78c5f4a6d9287b7553f0730ffc86f4c3a /elisp/geiser-doc.el
parent5e55181bae7bc30a428854f2bde5cd03c9ff6717 (diff)
downloadgeiser-9186ce41aabe30f6242fcfc32d80c21e4f63d4d5.tar.gz
geiser-9186ce41aabe30f6242fcfc32d80c21e4f63d4d5.tar.bz2
Simpler handling of rest args in Emacs' side.
Diffstat (limited to 'elisp/geiser-doc.el')
-rw-r--r--elisp/geiser-doc.el11
1 files changed, 8 insertions, 3 deletions
diff --git a/elisp/geiser-doc.el b/elisp/geiser-doc.el
index 4e65b67..6d2eb40 100644
--- a/elisp/geiser-doc.el
+++ b/elisp/geiser-doc.el
@@ -125,9 +125,14 @@
(defun geiser-doc--insert-title (title)
(let ((p (point)))
- (insert (format "%s" title))
- (put-text-property p (point) 'face 'geiser-font-lock-doc-title))
- (newline))
+ (if (not (listp title))
+ (insert (format "%s" title))
+ (insert "(" (format "%s" (car title)))
+ (dolist (a (cdr title))
+ (insert " " (if (eq a '\#:rest) "." (format "%s" a))))
+ (insert ")"))
+ (put-text-property p (point) 'face 'geiser-font-lock-doc-title)
+ (newline)))
(defun geiser-doc--insert-list (title lst module)
(when lst