From 8f42520501ade7643aa517b2c5aa2456ac992f02 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Sun, 6 Jun 2010 03:58:01 +0200 Subject: Avoiding duplicates in autodoc arg lists --- elisp/geiser-autodoc.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'elisp/geiser-autodoc.el') 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))))) -- cgit v1.2.3