summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-28 23:03:53 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-28 23:03:53 +0100
commit7eb84295087a0d531e8694abf0ecc65c86ec5c34 (patch)
tree614690332a95deece6ef5aac7dbeced5f8475b08
parent034b3070c61888a0e88edd33506c58fdae9b2115 (diff)
downloadgeiser-guile-7eb84295087a0d531e8694abf0ecc65c86ec5c34.tar.gz
geiser-guile-7eb84295087a0d531e8694abf0ecc65c86ec5c34.tar.bz2
Display (quote foo) as 'foo in autodoc strings.
-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)