~ chicken-core (chicken-5) fe579176be30abaa3834409ae8a05acfa83da292


commit fe579176be30abaa3834409ae8a05acfa83da292
Author:     megane <meganeka@gmail.com>
AuthorDate: Thu Jun 20 10:45:59 2019 +0300
Commit:     Peter Bex <peter@more-magic.net>
CommitDate: Sat Jun 22 10:36:22 2019 +0200

    Report undefined identifiers in order of appearance
    
    Currently identifiers in (foo bar baz) are reported in reverse order,
    starting from baz. If foo is a missing macro, the warning messages can
    get quite confusing. It helps if that missing foo is reported first.
    
    Signed-off-by: Peter Bex <peter@more-magic.net>

diff --git a/modules.scm b/modules.scm
index f0cd1447..c1442a03 100644
--- a/modules.scm
+++ b/modules.scm
@@ -520,7 +520,7 @@
 			     (write-char #\) out))
 			   a))))
 		 (##sys#warn (get-output-string out))))))
-	 (module-undefined-list mod))
+	 (reverse (module-undefined-list mod)))
 	(when missing
 	  (##sys#error "module unresolved" name))
 	(let* ((iexports 
Trap