[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Geiser-users] [PATCH] Guile: Fix subr argument name retrieval for Guile
From: |
Ludovic Courtès |
Subject: |
[Geiser-users] [PATCH] Guile: Fix subr argument name retrieval for Guile >= 2.0.9. |
Date: |
Tue, 4 Jun 2013 14:42:57 +0200 |
---
scheme/guile/geiser/doc.scm | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/scheme/guile/geiser/doc.scm b/scheme/guile/geiser/doc.scm
index ebb8e1d..185b204 100644
--- a/scheme/guile/geiser/doc.scm
+++ b/scheme/guile/geiser/doc.scm
@@ -129,8 +129,11 @@
(rest . ,(car (cddddr arglist)))))
(define (doc->args proc)
- (define proc-rx "-- Scheme Procedure: ([^[\n]+)\n")
- (define proc-rx2 "-- Scheme Procedure: ([^[\n]+\\[[^\n]*(\n[^\n]+\\]+)?)")
+ ;; Guile 2.0.9+ uses the (texinfo ...) modules to produce
+ ;; `guile-procedures.txt', and the output has a single hyphen, whereas
+ ;; `makeinfo' produces two hyphens.
+ (define proc-rx "--? Scheme Procedure: ([^[\n]+)\n")
+ (define proc-rx2 "--? Scheme Procedure: ([^[\n]+\\[[^\n]*(\n[^\n]+\\]+)?)")
(let ((doc (object-documentation proc)))
(and doc
(let ((match (or (string-match proc-rx doc)
--
1.7.10.4
- [Geiser-users] [PATCH] Guile: Fix subr argument name retrieval for Guile >= 2.0.9.,
Ludovic Courtès <=