[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-gauche c9d367e 024/119: Fix complex key argument au
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-gauche c9d367e 024/119: Fix complex key argument autodocs |
Date: |
Sun, 1 Aug 2021 18:27:50 -0400 (EDT) |
branch: elpa/geiser-gauche
commit c9d367ef78bdc2e92a65cceb179b0cc36ee444a2
Author: András Simonyi <andras.simonyi@gmail.com>
Commit: András Simonyi <andras.simonyi@gmail.com>
Fix complex key argument autodocs
---
geiser.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/geiser.scm b/geiser.scm
index a6841e1..3ea5b47 100644
--- a/geiser.scm
+++ b/geiser.scm
@@ -34,6 +34,12 @@
(cons (car dl) (dotted-list-head (cdr dl)))
(list (car dl))))
+;; Get the first leaf of a tree
+(define (get-first-leaf tree)
+ (if (pair? tree)
+ (get-first-leaf (car tree))
+ tree))
+
(define (geiser:macroexpand form . rest)
@@ -122,7 +128,7 @@
(case section
((:optional) (push! optional x))
((:key) (push! key
- (let1 sym (if (pair? x) (car x) x)
+ (let1 sym (get-first-leaf x)
(symbol-append ': sym))))
((:rest) (push! required "..."))
(else (push! required x)))))
- [nongnu] elpa/geiser-gauche 9dafd9f 079/119: License-related updates, (continued)
- [nongnu] elpa/geiser-gauche 9dafd9f 079/119: License-related updates, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 04208f5 075/119: Cleanup Cask file, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 687713c 085/119: Update README.md, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche f1ccc62 086/119: Update README.md, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche f9064d8 003/119: Implement get-module and other Emacs functions, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche ca7629e 012/119: geieser-gauche fixes, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 4cb8586 007/119: Fix gauche prompt regexp, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 5876bc2 018/119: Deal with dotted signatures in autodoc, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 3fee273 027/119: Get autodoc info from all modules, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 98c52e6 023/119: Deal with complex key arguments, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche c9d367e 024/119: Fix complex key argument autodocs,
Philip Kaludercic <=
- [nongnu] elpa/geiser-gauche 5c18e45 030/119: Finish autodoc and symbol signature lookup, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 752a496 031/119: Add code source reference, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 2ef21b4 044/119: Remove a TODO comment, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 762cd22 035/119: Add guessing functions, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche fbcd9a4 050/119: Minor fix, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 2002cc0 056/119: Cleanup, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche e406a0e 051/119: Minor fixes, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 8a7dc24 064/119: Semicolon aesthetic changes, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 73346c2 066/119: Add unsupported procedures list, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 541ca86 060/119: Make eldoc work in the repl, Philip Kaludercic, 2021/08/01