From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Adam Nelson Newsgroups: gmane.lisp.guile.bugs Subject: bug#40252: [PATCH] [R7RS] cond-expand in define-library forms Date: Thu, 7 May 2020 13:26:25 -0400 Message-ID: <3d50de38-20ab-00d4-9d54-4a742a7bc57e@nels.onl> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="53596"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 To: 40252@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Thu May 07 19:32:25 2020 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jWkNk-000DoF-A3 for guile-bugs@m.gmane-mx.org; Thu, 07 May 2020 19:32:24 +0200 Original-Received: from localhost ([::1]:54384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWkNj-0007E2-8s for guile-bugs@m.gmane-mx.org; Thu, 07 May 2020 13:32:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWkMQ-0005ix-Dz for bug-guile@gnu.org; Thu, 07 May 2020 13:31:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60553) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jWkMQ-0008AN-3A for bug-guile@gnu.org; Thu, 07 May 2020 13:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jWkMP-0006Jt-WD for bug-guile@gnu.org; Thu, 07 May 2020 13:31:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Adam Nelson Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 07 May 2020 17:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40252 X-GNU-PR-Package: guile Original-Received: via spool by 40252-submit@debbugs.gnu.org id=B40252.158887264524269 (code B ref 40252); Thu, 07 May 2020 17:31:01 +0000 Original-Received: (at 40252) by debbugs.gnu.org; 7 May 2020 17:30:45 +0000 Original-Received: from localhost ([127.0.0.1]:43866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWkM9-0006JM-99 for submit@debbugs.gnu.org; Thu, 07 May 2020 13:30:45 -0400 Original-Received: from mta-09-3.privateemail.com ([68.65.122.19]:14009) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWkI6-00069c-MZ for 40252@debbugs.gnu.org; Thu, 07 May 2020 13:26:35 -0400 Original-Received: from MTA-09.privateemail.com (localhost [127.0.0.1]) by MTA-09.privateemail.com (Postfix) with ESMTP id 587A860043 for <40252@debbugs.gnu.org>; Thu, 7 May 2020 13:26:28 -0400 (EDT) Original-Received: from [192.168.91.31] (unknown [10.20.151.239]) by MTA-09.privateemail.com (Postfix) with ESMTPA id DA5C960034 for <40252@debbugs.gnu.org>; Thu, 7 May 2020 17:26:27 +0000 (UTC) Content-Language: en-US X-Virus-Scanned: ClamAV using ClamSMTP X-Mailman-Approved-At: Thu, 07 May 2020 13:30:44 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:9753 Archived-At: It looks like this bug was caused by a missing dot in a list in the cond-expand macro. This small patch fixes it: diff --git a/module/ice-9/r7rs-libraries.scm b/module/ice-9/r7rs-libraries.scm index 6db9de873..221806ad1 100644 --- a/module/ice-9/r7rs-libraries.scm +++ b/module/ice-9/r7rs-libraries.scm @@ -88,11 +88,11 @@          (((include-library-declarations filename ...) . decls)           (syntax-case (handle-includes #'(filename ...)) ()             ((decl ...) -            (partition-decls #'(decl ... decls) exports imports code)))) +            (partition-decls #'(decl ... . decls) exports imports code))))          (((cond-expand clause ...) . decls)           (syntax-case (handle-cond-expand #'(clause ...)) ()             ((decl ...) -            (partition-decls #'(decl ... decls) exports imports code)))))) +            (partition-decls #'(decl ... . decls) exports imports code))))))      (syntax-case stx ()        ((_ name decl ...)