diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-02-28 23:03:53 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-02-28 23:03:53 +0100 |
commit | 7eb84295087a0d531e8694abf0ecc65c86ec5c34 (patch) | |
tree | 614690332a95deece6ef5aac7dbeced5f8475b08 /elisp/geiser-autodoc.el | |
parent | 034b3070c61888a0e88edd33506c58fdae9b2115 (diff) | |
download | geiser-chez-7eb84295087a0d531e8694abf0ecc65c86ec5c34.tar.gz geiser-chez-7eb84295087a0d531e8694abf0ecc65c86ec5c34.tar.bz2 |
Display (quote foo) as 'foo in autodoc strings.
Diffstat (limited to 'elisp/geiser-autodoc.el')
-rw-r--r-- | elisp/geiser-autodoc.el | 10 |
1 files changed, 5 insertions, 5 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 |