unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: "Nguyễn Thái Ngọc Duy" <pclouds@gmail.com>
To: guile-devel@gnu.org
Cc: "Nguyễn Thái Ngọc Duy" <pclouds@gmail.com>
Subject: [PATCH] Accept .sld as scheme extensions in r7rs
Date: Sat, 15 Feb 2020 06:46:07 +0700	[thread overview]
Message-ID: <20200214234607.6273-1-pclouds@gmail.com> (raw)

This is similar to 0bb980f12 (New function: install-r6rs!, 2019-09-25)
which accepts .sls extension for r6rs. In r7rs, most portable libraries
use .sld.

* module/ice-9/boot-9.scm (install-r7rs!): Update %load-extensions.
---
 module/ice-9/boot-9.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/module/ice-9/boot-9.scm b/module/ice-9/boot-9.scm
index 39efcb5e6..b2ba16361 100644
--- a/module/ice-9/boot-9.scm
+++ b/module/ice-9/boot-9.scm
@@ -4597,6 +4597,9 @@ R6RS.  @xref{R6RS Incompatibilities} in the manual."
   "Make changes to the default environment to better conform to the
 R7RS."
   (install-r6rs!)
+  (set! %load-extensions
+        (cons* ".guile.sld" ".sld"
+               (delete ".guile.sld" (delete ".sld" (delete ".guile.sls" (delete ".sls" %load-extensions))))))
   (read-enable 'r7rs-symbols))
 
 \f
-- 
2.23.0.81.g691ad8b700




             reply	other threads:[~2020-02-14 23:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-14 23:46 Nguyễn Thái Ngọc Duy [this message]
2020-02-27  8:58 ` [PATCH] Accept .sld as scheme extensions in r7rs Duy Nguyen
2020-03-07 15:14 ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200214234607.6273-1-pclouds@gmail.com \
    --to=pclouds@gmail.com \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).