From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id /1neGWpbHF/MXwAA0tVLHw (envelope-from ) for ; Sat, 25 Jul 2020 16:18:50 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UG03FWpbHF8THAAAbx9fmQ (envelope-from ) for ; Sat, 25 Jul 2020 16:18:50 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 288769403CB for ; Sat, 25 Jul 2020 16:18:50 +0000 (UTC) Received: from localhost ([::1]:37194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jzMsr-0007kr-6T for larch@yhetil.org; Sat, 25 Jul 2020 12:18:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jzMsi-0007jQ-Qx for guix-devel@gnu.org; Sat, 25 Jul 2020 12:18:40 -0400 Received: from mail-ua1-x929.google.com ([2607:f8b0:4864:20::929]:39904) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jzMsh-0004D5-AY; Sat, 25 Jul 2020 12:18:40 -0400 Received: by mail-ua1-x929.google.com with SMTP id h18so4118904uao.6; Sat, 25 Jul 2020 09:18:38 -0700 (PDT) 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=dAW/1Kk9+tZA56HnG9eH6vc6g8kjoQg3xOoyBLNiUhs=; b=p37Wr9+6oR2V/QAhoyZkpXUCWMxZbzJYCHG9skJ2qIi7Pf2u1IxDUFC8XW0FY8oqnr vk9pNqViuT0PlxIbrCZkvCsclhTpDOtoaA+4ngnmWyzmaHMf+XjwpAkXXldOJC/qm12I CAxa85y+A07Y6WLemyBf4o6ZlmMSCq7FxpUJzg8PxexXPUXtoTkPGnjVzSMkdLwBnIlp D9zBtEsHwnYreWhIwvOwYzGmH7D9aUVh9v49zVAyg5vgDg7pr7YjKWGdorrEc00pQqJS lknGU7sgV+G0BJvJ+p8AG5Pc/4qPN3EfceWBfGKh3mI1UshuIas2ncYCNpVxRrvH4dIQ DWgw== 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=dAW/1Kk9+tZA56HnG9eH6vc6g8kjoQg3xOoyBLNiUhs=; b=YLPH883M1nGmIdEtiQwHytX+L8HqPf3jZXUX4tMwYZsuDED7JKTZZgee2WlcMhbjSg H/kUPuO8BpQBfYwgqcZNre14MxML40aRR/LDOTzlce9FUz0xII08M7PlB0F97SMO/78D M+s/nO405LCWxLnI/irw+IpX5z2sLcAqhKwbo7ArJv7TdThOA4U3B6tASolywhwskdHg M7fvH5R1/mUxaKVFQxvQ6eYhOyw+HR21jykDzJ0NolC62nay8PVHd/txcoG9utmR7zVu T8ECApNz+sFzwHxBpHgXW6p0XS9s4x2u0mrXUys3EBrAfPxmIU5uvDnRqno7DkldLlJz Gutg== X-Gm-Message-State: AOAM5311eQo52c7agsz0TSTtXMyu7mhA4MkFcg8U4+WTWex1v0xRX2b/ d1+tHCfvt7jPWsEFmdSu8G3hGzlCCbsvpST70nKypg== X-Google-Smtp-Source: ABdhPJw/niS++LwPv1YIv0n23AjAxrZ09tqGLPYT9eUUzlmWiN/wLFTrSWpiExFU4XiyLVB+vbUS/AuP7aT2+ifNXtE= X-Received: by 2002:a67:eacf:: with SMTP id s15mr12029718vso.116.1595693917410; Sat, 25 Jul 2020 09:18:37 -0700 (PDT) MIME-Version: 1.0 References: <87v9ibve2o.fsf@gnu.org> In-Reply-To: <87v9ibve2o.fsf@gnu.org> From: Josh Marshall Date: Sat, 25 Jul 2020 12:18:24 -0400 Message-ID: Subject: Re: guile-readline bug -- readline module not available To: Marius Bakke Content-Type: multipart/alternative; boundary="0000000000001e180705ab4671f7" Received-SPF: pass client-ip=2607:f8b0:4864:20::929; envelope-from=joshua.r.marshall.1991@gmail.com; helo=mail-ua1-x929.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=p37Wr9+6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: 0Rvlyhm4OF1e --0000000000001e180705ab4671f7 Content-Type: text/plain; charset="UTF-8" Correct. Moved, new job, and other stuff came up so I had to drop guix participation for a bit. Not ready to pick it back up yet. On Sat, Jul 25, 2020, 10:56 Marius Bakke wrote: > Josh Marshall writes: > > > Hello all, > > > > I ran into an issue where the readline module isn't available for the > > guile repl after installing `guile-readline`. It can be replicated > > via: > > > > `echo "(use-modules (ice-9 readline))" | guix environment --pure guile > > guile-readline -- guile` > > > > So with that, I'm pretty sure it isn't just me. > > This is on a foreign distribution, right? > > The '.guile' on Guix System has a trick that automatically loads > readline when available: > > --8<---------------cut here---------------start------------->8--- > $ cat ~/.guile > (cond ((false-if-exception (resolve-interface '(ice-9 readline))) > => > (lambda (module) > ;; Enable completion and input history at the REPL. > ((module-ref module 'activate-readline)))) > (else > (display "Consider installing the 'guile-readline' package for > convenient interactive line editing and input history.\n\n"))) > --8<---------------cut here---------------end--------------->8--- > --0000000000001e180705ab4671f7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Correct.=C2=A0 Moved, new job, and other stuff came up so= I had to drop guix participation for a bit.=C2=A0 Not ready to pick it bac= k=C2=A0up yet.=C2=A0

On Sat, Jul 25, 2020, 10:56 Marius Bakke <marius@gnu.org> wrote:
Josh Marshall <joshua.r.marshall.1991@g= mail.com> writes:

> Hello all,
>
> I ran into an issue where the readline module isn't available for = the
> guile repl after installing `guile-readline`.=C2=A0 It can be replicat= ed
> via:
>
> `echo "(use-modules (ice-9 readline))" | guix environment --= pure guile
> guile-readline -- guile`
>
> So with that, I'm pretty sure it isn't just me.

This is on a foreign distribution, right?

The '.guile' on Guix System has a trick that automatically loads readline when available:

--8<---------------cut here---------------start------------->8---
$ cat ~/.guile
(cond ((false-if-exception (resolve-interface '(ice-9 readline)))
=C2=A0 =C2=A0 =C2=A0 =C2=A0=3D>
=C2=A0 =C2=A0 =C2=A0 =C2=A0(lambda (module)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; Enable completion and input history at= the REPL.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0((module-ref module 'activate-readlin= e))))
=C2=A0 =C2=A0 =C2=A0 (else
=C2=A0 =C2=A0 =C2=A0 =C2=A0(display "Consider installing the 'guil= e-readline' package for
convenient interactive line editing and input history.\n\n")))
--8<---------------cut here---------------end--------------->8---
--0000000000001e180705ab4671f7--