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 | ee0d020521b46652f98278e46e61adb606b195d5 (patch) | |
tree | 54700f34aa8389f93abc18c47fa4ba1d18f7e1af /elisp/geiser-autodoc.el | |
parent | 8563be5f22eda87cf676ad62a252295aa40f0b64 (diff) | |
download | geiser-ee0d020521b46652f98278e46e61adb606b195d5.tar.gz geiser-ee0d020521b46652f98278e46e61adb606b195d5.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 |