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 +Zk1FBxIHF+wbAAA0tVLHw (envelope-from ) for ; Sat, 25 Jul 2020 14:56:28 +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 IOI0DxxIHF8fXAAAbx9fmQ (envelope-from ) for ; Sat, 25 Jul 2020 14:56:28 +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 114EC9400BB for ; Sat, 25 Jul 2020 14:56:28 +0000 (UTC) Received: from localhost ([::1]:32790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jzLb9-0001J3-1S for larch@yhetil.org; Sat, 25 Jul 2020 10:56:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jzLaz-0001Ik-Pb for guix-devel@gnu.org; Sat, 25 Jul 2020 10:56:17 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45211) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jzLaz-0006lr-HO; Sat, 25 Jul 2020 10:56:17 -0400 Received: from 84-52-226.102.3p.ntebredband.no ([84.52.226.102]:38196 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jzLay-00022i-S7; Sat, 25 Jul 2020 10:56:17 -0400 From: Marius Bakke To: Josh Marshall , guix-devel Subject: Re: guile-readline bug -- readline module not available In-Reply-To: References: Date: Sat, 25 Jul 2020 16:55:59 +0200 Message-ID: <87v9ibve2o.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: -3.11 X-TUID: gdm0r2bNabT9 --=-=-= Content-Type: text/plain 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--- --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl8cR/8ACgkQoqBt8qM6 VPpZ7AgAigdtcZnY1E/ecO9WPwxhJvmHvfwVGq8XcuBTovKPAxZOJnqYz/kc/oKZ dP97VZgR8NSgPJt2vxIvkV10pRqa/4SRLS5o/xKLeF2LqvUvcxZSVQ1jbDNiqzjT 83Jx0h6UftvMFPeCQGTIEKJ2+JI1TD1gZOaXlsDN0gXUs+cjNGg+Iss2vj8zAdYK rGYfDf0/mFOjDx0oEbJcQKaBgWjwbFjq59gLCV4WOtHm+t/5C5rvEnqis4otg2aV Dwy0pV1SqWZeeuYOdd5Q4SdlCgaHISQ1Y9Vx1FXYdi+Efy+YRwvXr98kl1IwQgvN w80NfUY5cPzZJJTjKB9Ie0yK7HoRhw== =3Bl6 -----END PGP SIGNATURE----- --=-=-=--