summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elisp/geiser-autodoc.el10
-rw-r--r--scheme/guile/geiser/introspection.scm5
2 files changed, 5 insertions, 10 deletions
diff --git a/elisp/geiser-autodoc.el b/elisp/geiser-autodoc.el
index b1f5ae1..4c936cf 100644
--- a/elisp/geiser-autodoc.el
+++ b/elisp/geiser-autodoc.el
@@ -85,12 +85,12 @@ when `geiser-autodoc-display-module-p' is on."
(cdr geiser-autodoc--last))))))
(defun geiser-autodoc--insert-arg (arg current pos)
- (let ((str (format "%s" (if (eq arg '\#:rest) "." arg))))
+ (let ((p (point))
+ (str (format "%s" (if (eq arg '\#:rest) "." arg))))
+ (insert str)
+ (when (listp arg) (replace-regexp "(quote \\(.*\\))" "'\\1" nil p (point)))
(when (= current pos)
- (put-text-property 0 (length str)
- 'face 'geiser-font-lock-autodoc-current-arg
- str))
- (insert str)))
+ (put-text-property p (point) 'face 'geiser-font-lock-autodoc-current-arg))))
(defsubst geiser-autodoc--proc-name (proc module)
(let ((str (if module
diff --git a/scheme/guile/geiser/introspection.scm b/scheme/guile/geiser/introspection.scm
index fd6784d..c7b6de2 100644
--- a/scheme/guile/geiser/introspection.scm
+++ b/scheme/guile/geiser/introspection.scm
@@ -118,11 +118,6 @@
(iota (max count 1))))
(define (arguments proc)
- "Return an alist describing the arguments that `proc' accepts, or `#f'
-if the information cannot be obtained.
-
-The alist keys that are currently defined are `required', `optional',
-`keyword', and `rest'."
(cond
((procedure-property proc 'arglist)
=> (lambda (arglist)