diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-02-28 04:35:45 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-02-28 04:35:45 +0100 |
commit | e78b749e34c2f6e681f815d0b9b9dd3d32537c88 (patch) | |
tree | a3b9ce9f95e20d5081b5f2f83c6a6cb2300b485d /elisp/geiser-doc.el | |
parent | adf746b37d1ffa35abe99eb3ae2b85902e8781ce (diff) | |
download | geiser-guile-e78b749e34c2f6e681f815d0b9b9dd3d32537c88.tar.gz geiser-guile-e78b749e34c2f6e681f815d0b9b9dd3d32537c88.tar.bz2 |
Simpler handling of rest args in Emacs' side.
Diffstat (limited to 'elisp/geiser-doc.el')
-rw-r--r-- | elisp/geiser-doc.el | 11 |
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 |