[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-gauche 4195803 028/119: Prefer longest require arg
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-gauche 4195803 028/119: Prefer longest require arg list in autodoc |
Date: |
Sun, 1 Aug 2021 18:27:51 -0400 (EDT) |
branch: elpa/geiser-gauche
commit 4195803a9788618c09e2163d63f1540aa3a522b6
Author: András Simonyi <andras.simonyi@gmail.com>
Commit: András Simonyi <andras.simonyi@gmail.com>
Prefer longest require arg list in autodoc
---
geiser.scm | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
diff --git a/geiser.scm b/geiser.scm
index 4a0fc2e..21eacb6 100644
--- a/geiser.scm
+++ b/geiser.scm
@@ -85,12 +85,7 @@
(delete-duplicates
(remove
(^x (or (string=? x "")
- (string-prefix? "(" x)
- ;; TODO check whether it is bound in the current module?
- ;; probably needs changing this into a macro...
- ;; (not (global-variable-bound? (current-module)
- ;; (string->symbol x)))
- ))
+ (string-prefix? "(" x)))
(string-split
(with-output-to-string
(cut apropos (string->regexp (string-append "^" prefix))))
@@ -106,13 +101,13 @@
;;; Autodoc
(define (geiser:autodoc ids . rest)
- (concatenate
- (map (cut gauche-info <>)
- ids)))
+ (map (cut gauche-info <>)
+ ids))
(define (gauche-info id)
- (filter-map (cut gauche-info-in-module id <>)
- (all-modules)))
+ (car
+ (sort (filter-map (cut gauche-info-in-module id <>) (all-modules))
+ > (^x (length (car (cadadr x)))))))
(define (gauche-info-in-module id module)
(if (hash-table-get (module-table module) id #f)
- [nongnu] elpa/geiser-gauche 4027a84 053/119: Minor fix, (continued)
- [nongnu] elpa/geiser-gauche 4027a84 053/119: Minor fix, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 2e6dbc4 076/119: Aesthetic changes, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 6806302 077/119: Cosmetic changes for MELPA, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 0be6e0a 081/119: Add setup elisp file, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche a3b2e3f 009/119: Remove test line, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 0050571 021/119: Minor fix in autodoc, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 7635884 020/119: Minor fix, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche c96701c 047/119: Continue work on module docs, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 54a360a 029/119: Add symbol manual lookup support, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche f5ddefb 043/119: Prefer current-module visible alternatives in autodoc, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 4195803 028/119: Prefer longest require arg list in autodoc,
Philip Kaludercic <=
- [nongnu] elpa/geiser-gauche d5d68fd 039/119: Don't import the geiser module at startup, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 0fac12f 048/119: Improve module documentation, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche a0eee47 068/119: Correctly detect current module in the repl, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 4890817 063/119: Add let1 and case-lambda to the syntax rules, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche d71c212 074/119: Add compile to the require list, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 34490de 078/119: Small corrections, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche aeeb8b3 080/119: Minor fix, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche dd68fc7 087/119: Update README.md, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 6dfc178 090/119: Add experimental status warning, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 1e09ad7 092/119: Finish elisp stylistic improvements, Philip Kaludercic, 2021/08/01