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

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

[nongnu] elpa/geiser-gauche 0050571 021/119: Minor fix in autodoc


From: Philip Kaludercic
Subject: [nongnu] elpa/geiser-gauche 0050571 021/119: Minor fix in autodoc
Date: Sun, 1 Aug 2021 18:27:50 -0400 (EDT)

branch: elpa/geiser-gauche
commit 005057138dc35db072f2f6b1729058476d920ef5
Author: András Simonyi <andras.simonyi@gmail.com>
Commit: András Simonyi <andras.simonyi@gmail.com>

    Minor fix in autodoc
---
 geiser.scm | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/geiser.scm b/geiser.scm
index 498fc07..657111b 100644
--- a/geiser.scm
+++ b/geiser.scm
@@ -116,15 +116,13 @@
         (key '("key"))
         (section :required))
     (dolist (x arg-info)
-           (case x
-             ((:optional :key) (set! section x))
-             ((:rest))
-             (else (case section
-                     ((:optional) (push! optional x))
-                     ((:key) (push! key x))
-                     (else (if (symbol=? x 'args)
-                               (push! required "...")
-                               (push! required x)))))))
+           (if (memq x '(:optional :key :rest))
+               (set! section x)
+               (case section
+                 ((:optional) (push! optional x))
+                 ((:key) (push! key x))
+                 ((:rest) (push! required "..."))
+                 (else (push! required x)))))
     (map (cut reverse <>)
         (list required optional key))))
 



reply via email to

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