[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: guile-readline bug -- readline module not available

From: Josh Marshall
Subject: Re: guile-readline bug -- readline module not available
Date: Sat, 25 Jul 2020 12:18:24 -0400

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))))
       (display "Consider installing the 'guile-readline' package for
convenient interactive line editing and input history.\n\n")))
--8<---------------cut here---------------end--------------->8---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]