unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Oleg Pykhalov <go.wigust@gmail.com>
Cc: 33466@debbugs.gnu.org
Subject: [bug#33466] [PATCH 2/2] repl: Add 'colorized' and 'readline' support.
Date: Sun, 25 Nov 2018 21:40:50 +0100	[thread overview]
Message-ID: <874lc4vqjx.fsf@gnu.org> (raw)
In-Reply-To: <20181122144228.31573-2-go.wigust@gmail.com> (Oleg Pykhalov's message of "Thu, 22 Nov 2018 17:42:28 +0300")

Oleg Pykhalov <go.wigust@gmail.com> skribis:

> * guix/scripts/repl.scm (guix-repl): Add 'colorized' and 'readline' support.
> ---
>  guix/scripts/repl.scm | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
>
> diff --git a/guix/scripts/repl.scm b/guix/scripts/repl.scm
> index 1a105f51e..eeaf4acc4 100644
> --- a/guix/scripts/repl.scm
> +++ b/guix/scripts/repl.scm
> @@ -188,6 +188,23 @@ call THUNK."
>               (save-module-excursion
>                (lambda ()
>                  (set-current-module user-module)
> +                (cond ((false-if-exception (resolve-interface '(ice-9 readline)))
> +                       =>
> +                       (lambda (module)
> +                         ;; Enable completion and input history at the REPL.
> +                         ((module-ref module 'activate-readline))))

What about simply loading ~/.guile when it exists?

Ludo’.

  reply	other threads:[~2018-11-25 20:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-22 14:40 [bug#33466] [PATCH 0/2] Improve guix repl Oleg Pykhalov
2018-11-22 14:42 ` [bug#33466] [PATCH 1/2] repl: Do not exit repl on SIGINT Oleg Pykhalov
2018-11-22 14:42   ` [bug#33466] [PATCH 2/2] repl: Add 'colorized' and 'readline' support Oleg Pykhalov
2018-11-25 20:40     ` Ludovic Courtès [this message]
2018-12-01 20:48       ` Oleg Pykhalov
2018-12-02 17:38         ` Ludovic Courtès
2018-12-03  5:07           ` bug#33466: " Oleg Pykhalov
2018-11-25 20:39   ` [bug#33466] [PATCH 1/2] repl: Do not exit repl on SIGINT 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://guix.gnu.org/

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

  git send-email \
    --in-reply-to=874lc4vqjx.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=33466@debbugs.gnu.org \
    --cc=go.wigust@gmail.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).