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 | 8f42520501ade7643aa517b2c5aa2456ac992f02 (patch) | |
tree | 112823a6c97cc7fbde7e8a18265380dc494b7b29 /elisp | |
parent | d286490c5a7fbe0554ff946b712c1f5308f38f95 (diff) | |
download | geiser-chez-8f42520501ade7643aa517b2c5aa2456ac992f02.tar.gz geiser-chez-8f42520501ade7643aa517b2c5aa2456ac992f02.tar.bz2 |
Avoiding duplicates in autodoc arg lists
Diffstat (limited to 'elisp')
-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))))) |