summaryrefslogtreecommitdiff
path: root/elisp/geiser-autodoc.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-08-23 15:44:02 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-08-23 15:44:02 +0200
commit9475d8e30039bff3dfb500471ef74cf2b6362f79 (patch)
tree19fe3504cc90a0f31ed8ddc0d36696040b13bce6 /elisp/geiser-autodoc.el
parent54d772a57b4fa5ad3bfe14884a1421d466724895 (diff)
downloadgeiser-9475d8e30039bff3dfb500471ef74cf2b6362f79.tar.gz
geiser-9475d8e30039bff3dfb500471ef74cf2b6362f79.tar.bz2
Buglet in autodoc's argument display.
Diffstat (limited to 'elisp/geiser-autodoc.el')
-rw-r--r--elisp/geiser-autodoc.el10
1 files changed, 7 insertions, 3 deletions
diff --git a/elisp/geiser-autodoc.el b/elisp/geiser-autodoc.el
index a8a7a50..26abd8d 100644
--- a/elisp/geiser-autodoc.el
+++ b/elisp/geiser-autodoc.el
@@ -122,9 +122,13 @@ when `geiser-autodoc-display-module-p' is on."
(save-current-buffer
(set-buffer (geiser-syntax--font-lock-buffer))
(erase-buffer)
- (insert (format "(%s " (geiser-autodoc--proc-name proc module)))
- (setq cpos
- (geiser-autodoc--insert-args reqs cpos (and (not (zerop pos)) pos)))
+ (insert (format "(%s" (geiser-autodoc--proc-name proc module)))
+ (when reqs
+ (insert " ")
+ (setq cpos
+ (geiser-autodoc--insert-args reqs
+ cpos
+ (and (not (zerop pos)) pos))))
(when opts
(insert " [")
(setq cpos (geiser-autodoc--insert-args opts cpos pos))