summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elisp/geiser-autodoc.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/elisp/geiser-autodoc.el b/elisp/geiser-autodoc.el
index ef84e4c..4913088 100644
--- a/elisp/geiser-autodoc.el
+++ b/elisp/geiser-autodoc.el
@@ -143,8 +143,9 @@ when `geiser-autodoc-display-module-p' is on."
(let ((pos (or (cadr desc) 0))
(prev (caddr desc)))
(dolist (a args)
- (geiser-autodoc--insert-args a pos prev)
- (insert " |")))
+ (when (not (member a (cdr (member a args))))
+ (geiser-autodoc--insert-args a pos prev)
+ (insert " |"))))
(delete-char -2)
(insert ")")
(buffer-string)))))