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
commitded319e99f9c15a1384e5afee6329509a134117d (patch)
tree0a799ada1e7611d1c77ec745a2c8a572de031ea0
parentc882e02981f805df197dcaef3a14147e5ef815c7 (diff)
downloadgeiser-ded319e99f9c15a1384e5afee6329509a134117d.tar.gz
geiser-ded319e99f9c15a1384e5afee6329509a134117d.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)