From 7eb84295087a0d531e8694abf0ecc65c86ec5c34 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Sat, 28 Feb 2009 23:03:53 +0100 Subject: Display (quote foo) as 'foo in autodoc strings. --- elisp/geiser-autodoc.el | 10 +++++----- scheme/guile/geiser/introspection.scm | 5 ----- 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) -- cgit v1.2.3