diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-06-06 03:58:01 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-06-06 03:58:01 +0200 |
commit | 57868869d80cd388f2cb7588e563034dedb0932a (patch) | |
tree | 424a2b31bac7ead5040fdfaaf8a12f33e764fcf0 | |
parent | 209803ff174243d3070ed7ffd08dc5be5cbfb43b (diff) | |
download | geiser-57868869d80cd388f2cb7588e563034dedb0932a.tar.gz geiser-57868869d80cd388f2cb7588e563034dedb0932a.tar.bz2 |
Avoiding duplicates in autodoc arg lists
-rw-r--r-- | elisp/geiser-autodoc.el | 5 |
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))))) |