summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-08-11 15:44:54 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-08-11 15:44:54 +0200
commit9d64bcb33f7ac1b3a06220842d04ce3c0534948e (patch)
tree5ae8b1d7ae69cd5766c219826cc12ed9ceca046e
parentdb34b16737120ac0c6951c32b8d1aa838491cf84 (diff)
downloadgeiser-chez-9d64bcb33f7ac1b3a06220842d04ce3c0534948e.tar.gz
geiser-chez-9d64bcb33f7ac1b3a06220842d04ce3c0534948e.tar.bz2
autodoc: better emacs display for opt/key markers.
-rw-r--r--elisp/geiser-autodoc.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/elisp/geiser-autodoc.el b/elisp/geiser-autodoc.el
index 0449032..1225f87 100644
--- a/elisp/geiser-autodoc.el
+++ b/elisp/geiser-autodoc.el
@@ -97,7 +97,10 @@ when `geiser-autodoc-display-module-p' is on."
(defun geiser-autodoc--insert-arg (arg current pos)
(let ((p (point))
- (str (format "%s" (if (eq arg 'geiser-rest_marker) "." arg)))
+ (str (format "%s" (cond ((eq arg 'geiser-rest_marker) ".")
+ ((eq arg 'geiser-opt_marker) "#:opt")
+ ((eq arg 'geiser-key_marker) "#:key")
+ (t arg))))
(face (cond ((eq 'geiser-opt_marker arg)
'geiser-font-lock-autodoc-optional-arg-marker)
((eq 'geiser-key_marker arg)