From a619f2d4c984af86bac0fdf8deb26ad7d72faaca Mon Sep 17 00:00:00 2001 From: Ludovic Court`es Date: Wed, 4 Apr 2007 16:15:21 +0000 Subject: Fixed `find-up'. * src/guile/skribilo/ast.scm (find-up): Don't cons OBJ when it doesn't match PRED. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-45 --- src/guile/skribilo/ast.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/guile') diff --git a/src/guile/skribilo/ast.scm b/src/guile/skribilo/ast.scm index 5146f75..534b832 100644 --- a/src/guile/skribilo/ast.scm +++ b/src/guile/skribilo/ast.scm @@ -580,7 +580,7 @@ ((pred obj) (loop (ast-parent obj) (cons obj res))) (else - (loop (ast-parent obj) (cons obj res)))))) + (loop (ast-parent obj) res))))) (define (find1-up pred obj) (let loop ((obj obj)) -- cgit v1.2.3