From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: Re: shell script to start guile w/ repl Date: Wed, 6 Mar 2019 11:38:02 +0000 Message-ID: References: <042c5b68-7fd7-0eb0-5a65-122e8ae00020@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="173107"; mail-complaints-to="usenet@blaine.gmane.org" Cc: guile-user@gnu.org To: Matt Wette Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Mar 06 12:38:39 2019 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1Ush-000iw2-DC for guile-user@m.gmane.org; Wed, 06 Mar 2019 12:38:39 +0100 Original-Received: from localhost ([127.0.0.1]:59814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1Usg-00054w-Ce for guile-user@m.gmane.org; Wed, 06 Mar 2019 06:38:38 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1UsL-00054p-35 for guile-user@gnu.org; Wed, 06 Mar 2019 06:38:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1UsK-0001Qs-Gn for guile-user@gnu.org; Wed, 06 Mar 2019 06:38:17 -0500 Original-Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]:42144) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h1UsK-0001Pz-90 for guile-user@gnu.org; Wed, 06 Mar 2019 06:38:16 -0500 Original-Received: by mail-lf1-x135.google.com with SMTP id p1so8665084lfk.9 for ; Wed, 06 Mar 2019 03:38:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=S0jysiWc/gnTFimM2gM6OfzQIJhgeeM9K+0zxNEvnXY=; b=JUo2RMJMK7J66Uqo2xm9rwhdFMnxWJUCq2eKwHD7uTB5HQBlhbcpGQ1ra2HvdpYqfQ j0oHq3qGMs4tUYfIS/zt8f0MM+I0LwNxsia7YkYS3uGmYDqipQgE3Z5iCbHvBQODXNWQ AaYMZN+MlyA19m12JtImQfxbTwRebKyKueszdvDtdbacPheDwhnESOZpq1BQVoEkP9PY LEceGusQzwG3uoPKWxWDiH5tYxt5tgWkf2Y2NVANVmKe3WI60ZzLtQqKaIeOBaFBIyrr yaBDzV7GEReJULz7bLqu/qKTJUv4+R24LgUq2y/aFyIDnG338u+mdFG8Jl0W3weMJpAY d5nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=S0jysiWc/gnTFimM2gM6OfzQIJhgeeM9K+0zxNEvnXY=; b=D56vYySjrG70EHJPQT/RiQwCPk/inXI28wUBskE56PiWoy2DWWnlxNUTziVN9SYX7V qXSJDsK4s5cq5X2LiH3zTXnLhoJku6LAi8Fjz4P9goSUeIwPsogzNLVLzldfI0NN+SLD //1+aFjBoEiocVxTKRWMW/GPPvYd2VT2NnpuEymr+fdWOIRe1JKSELkJlqu+uWhjFLio of2PLCYKu3aVWYr5wAnhn+3qaS4Xat0ltEXs6Fc45YGVVV4ZnNFtKnLo5zQeLQ2gvje5 b4WV0NiYCem+itKwdx6BY7hl5ubK0vS2XajQCg5ZAG64xu2SAaBfGtBWahSAArq2vNJh /pgw== X-Gm-Message-State: APjAAAWqmOkq3KdvFYePRZoQ0RnMK/XxYfanQy0w/Xu02+/qCvfaGHXb f6OC+m+Ngsqdmk9MBX70wS5+penhdJhaUkXi4ys+hrLN X-Google-Smtp-Source: APXvYqxs/bCePo5zMWY2S+AduDiOMAp1o+XVFqtvLV/iPmMh9Exv3ls6FbfnF69THC4iuQTPrA6RSqybq1bDJIkgpJU= X-Received: by 2002:a19:6554:: with SMTP id c20mr3590156lfj.15.1551872293815; Wed, 06 Mar 2019 03:38:13 -0800 (PST) In-Reply-To: <042c5b68-7fd7-0eb0-5a65-122e8ae00020@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::135 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:15359 Archived-At: On Wed, 6 Mar 2019 at 01:22, Matt Wette wrote: > > Hi All, > > I'm trying to generate a shell script that sets up environment for guile and > then executes a guile repl. I can do that. It is here: > > #!/bin/sh > > LD_LIBRARY_PATH=/path/to/my/lib > export LD_LIBRARY_PATH > > exec guile -ds $0 $@ > !# > > ;; ... stuff ... > > (use-modules (ice-9 top-repl)) > (top-repl) > > > Now I would like to have the top-repl use an alternate language. > How do I do that? I tried > > (*current-language* (lookup-language 'nx-tcl)) > (top-repl) > > But this fails. Any hints? Just guessing, but perhaps: (fluid-set! *current-language* 'nx-tcl) or (fluid-set! *current-language* (lookup-language 'nx-tcl)) ? Neil