From eefc4cddbc303b6de38b9b0d80ac591e6282fd5c Mon Sep 17 00:00:00 2001
From: Jose Antonio Ortega Ruiz <jao@gnu.org>
Date: Sun, 21 Nov 2010 05:24:36 +0100
Subject: Correct display of "..." in autodoc

It'd be interesting to check what percentage of commits are related to
autodoc...
---
 elisp/geiser-autodoc.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/elisp/geiser-autodoc.el b/elisp/geiser-autodoc.el
index 2873bb0..725c8bc 100644
--- a/elisp/geiser-autodoc.el
+++ b/elisp/geiser-autodoc.el
@@ -89,6 +89,7 @@ when `geiser-autodoc-display-module-p' is on."
 (defun geiser-autodoc--format-arg (a)
   (cond ((null a) "()")
         ((symbolp a) (format "%s" a))
+        ((equalp a "...") "...")
         ((stringp a) (format "%S" a))
         ((and (listp a) (keywordp (car a)))
          (if (and (cdr a) (listp (cdr a)))
@@ -98,7 +99,7 @@ when `geiser-autodoc-display-module-p' is on."
          (format "'%s" (geiser-autodoc--format-arg (cadr a))))
         ((listp a) (format "(%s)"
                            (mapconcat 'geiser-autodoc--format-arg a " ")))
-        (t (format "%S" a))))
+        (t (format "%s" a))))
 
 (defun geiser-autodoc--insert-arg-group (args current &optional pos)
   (when args (insert " "))
-- 
cgit v1.2.3