From aa02b8c828bc4468e15324a68f8d97a46ca21a87 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Sun, 24 Jan 2010 17:14:45 +0100 Subject: Guile: fix for autodoc in 1.9.7 --- scheme/guile/geiser/doc.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scheme') diff --git a/scheme/guile/geiser/doc.scm b/scheme/guile/geiser/doc.scm index c7ad79d..120c97e 100644 --- a/scheme/guile/geiser/doc.scm +++ b/scheme/guile/geiser/doc.scm @@ -1,6 +1,6 @@ ;;; doc.scm -- procedures providing documentation on scheme objects -;; Copyright (C) 2009 Jose Antonio Ortega Ruiz +;; Copyright (C) 2009, 2010 Jose Antonio Ortega Ruiz ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the Modified BSD License. You should @@ -60,15 +60,15 @@ (define (arguments proc) (define (p-arguments prog) - (map (lambda (a) ((@@ (system vm program) arity->arguments) prog a)) + (map (lambda (a) ((@@ (system vm program) arity->arguments-alist) prog a)) (or (program-arities prog) '()))) (define (clist f) (lambda (x) (let ((y (f x))) (and y (list y))))) (cond ((is-a? proc ) (generic-args proc)) ((procedure-property proc 'arglist) => (clist arglist->args)) ((procedure-source proc) => (clist source->args)) + ((doc->args proc) => list) ((program? proc) (let ((a (p-arguments proc))) (and (not (null? a)) a))) - ((doc->args proc) => list) ((procedure-property proc 'arity) => (clist arity->args)) (else #f))) -- cgit v1.2.3