emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/geiser-guile 12a6a2e 089/284: Well, i said that it was bet


From: Philip Kaludercic
Subject: [nongnu] elpa/geiser-guile 12a6a2e 089/284: Well, i said that it was better, not that it was perfect.
Date: Sun, 1 Aug 2021 18:29:22 -0400 (EDT)

branch: elpa/geiser-guile
commit 12a6a2e7e41226393f41b8ff9cc02446c1931402
Author: Jose Antonio Ortega Ruiz <jao@gnu.org>
Commit: Jose Antonio Ortega Ruiz <jao@gnu.org>

    Well, i said that it was better, not that it was perfect.
    
    Autodoc buglets and support for displaying module variables too.
---
 geiser/doc.scm | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/geiser/doc.scm b/geiser/doc.scm
index d951f1c..bc4acd9 100644
--- a/geiser/doc.scm
+++ b/geiser/doc.scm
@@ -37,6 +37,8 @@
   #:use-module (oop goops)
   #:use-module (srfi srfi-1))
 
+(define *an-object* #t)
+
 (define (autodoc ids)
   (if (not (list? ids))
       '()
@@ -59,17 +61,19 @@
             ((list? args) args)
             (else (list args)))))
   `(,id
-    (required ,@(arglst 'required))
-    (optional ,@(arglst 'optional)
-              ,@(let ((rest (assq-ref args 'rest)))
-                  (if rest (list "...") '())))
-    (key ,@(arglst 'keyword))))
+    (args ,@(if (list? args)
+                `((required ,@(arglst 'required))
+                  (optional ,@(arglst 'optional)
+                            ,@(let ((rest (assq-ref args 'rest)))
+                                (if rest (list "...") '())))
+                  (key ,@(arglst 'keyword)))
+                '()))))
 
 (define (obj-args obj)
   (cond ((not obj) #f)
         ((or (procedure? obj) (program? obj)) (arguments obj))
         ((macro? obj) (or (obj-args (macro-transformer obj)) '((required 
...))))
-        (else #f)))
+        (else 'variable)))
 
 (define (arguments proc)
   (cond



reply via email to

[Prev in Thread] Current Thread [Next in Thread]